- Upvotes Received
- 1
- Posts with Upvotes
- 1
- Upvoting Members
- 1
- Downvotes Received
- 0
- Posts with Downvotes
- 0
- Downvoting Members
- 0
13 Posted Topics
Re: you can use Win API ::GetProcessMemoryInfo But the system allocates memory in blocks (i don't remember exactly 4k or so) and after you allocate two bytes for example memory usage may become 4k more | |
Re: MSDN says about strcat: char *strcat( char *strDestination, const char *strSource ); Parameters strDestination Null-terminated destination string strSource Null-terminated source string In your case pointer a is unitialized and does not point to null-terminated string. | |
Re: I think your lecturer meant following: [code=c] class TrainCar { public: virtual string shape(){ return ""; } }; [/code] | |
Re: [code=c] #include<iostream> using namespace std; class Example { Example **object2; int size; public: Example() { size=2; object2=new Example* [size]; } void print2(Example &temp) { *object2=&temp; int i=0; while (i<2) { (*object2)->print(); i++; object2++; } cout<<"Dosn't Work !"<<endl; } void print(){ cout<<"\nPlease Help ! "<<endl;} }; int main(){ Example *temp=new Example; … | |
Re: More probable: 1. Memory Leak. 2. Memory improper usage, bad logic of our application. To see it you can use performance statistics. Memory should constantly grow. Applications used in production environment must be tested on different OS using for example virtual machines. For debugging purposes you can run server on … | |
Re: TCanvas is something like HDC (wrapper on it). When you begin to draw cross or something you want, you may fill full client area of TImage with background color. Use method FillRect of TCanvas class. | |
Re: You can see VCSpawn Fails During Build ( [url]http://support.microsoft.com/kb/327146[/url] ). Maybe workaround in this KB will help you. | |
Re: Rundll32.exe one of the core components of Windows. And if i'm not mistake, it responsibles to draw icons on desktop. Rundll32.exe in its turn using system register to correspond icon to show and file extension. I think or one of the system files is corrupted or something wrong with system-register. … | |
Re: First of all you need to use errors handling and do something like this: //WM_CRREATE [code=c] someread[0] = 0;//make string null-terminated hFile = CreateFile(...); if(INVALID_HANDLE_VALUE ==hFile) { MessageBox("file can not be opened",...); } else { if(ReadFile(hFile, &someread, sizeof(someread)-1, &n, 0)) someread[n] = 0;//make null-terminated else MessageBox("file can not be read",...); … | |
How to get lpBaseAddress to pass it to : BOOL WINAPI Toolhelp32ReadProcessMemory( DWORD th32ProcessID, LPCVOID lpBaseAddress, LPVOID lpBuffer, DWORD cbRead, LPDWORD lpNumberOfBytesRead ); It will be very helpful to me if someone can provide a snippet of code how to achieve that. Thanks a lot. | |
Re: What kind of device do you have? Mass storage, CDC, HID or something else... | |
Hello everyone ! My name is Arthur. I started my working path as hardware engineer, after that I worked as an embedded programmer. Just now I’m simply programmer. I hope to find here people with whom I have common interests. | |
Re: some times ago I wrote following code to find if present precise device. In my case that was USB device of CDC class (or simply virtual com port). But the principle of enumerating devices the same in every case. [code] // detects device presence on predefined hardware-node // Params: // … |
The End.