Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - necati sekkeli

#1
I am using mingw and QT 4.3.2 with gcc for compiling FET with my Windows XP.

I added a simple function to take hardware info of the PC. Also the code compiles. However, the .exe file crashes during the beginning of the execution. It reports that problem is about QtCore4.dll file.

I tried different versions (4.3.2, 4.3.3) of same dll but its same. Can you give me a hint? Does anyone have an idea? I think the problem is about an conflict between GetSystemInfo method and this DLL.

my code is like that:

#include <Windows.h>
....
char* LockUnlock::lookforpcvalues()
{
  SYSTEM_INFO siSysInfo;

  // Copy the hardware information to the SYSTEM_INFO structure.
  GetSystemInfo(&siSysInfo);

  // Display the contents of the SYSTEM_INFO structure.
  char * result=  reinterpret_cast<char*>(siSysInfo.wProcessorRevision);

     return result;
}