Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
1
Posts with Upvotes
1
Upvoting Members
1
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0
0 Endorsements
Ranked #3K
~5K People Reached
Favorite Tags

13 Posted Topics

Member Avatar for sommanatt

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

Member Avatar for myle
0
3K
Member Avatar for savinki

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.

Member Avatar for Radical Edward
0
82
Member Avatar for grommet2481

I think your lecturer meant following: [code=c] class TrainCar { public: virtual string shape(){ return ""; } }; [/code]

Member Avatar for Asat232
0
147
Member Avatar for DREAMER546

[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; …

Member Avatar for DREAMER546
0
131
Member Avatar for gilly_kumar

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 …

Member Avatar for lich
0
273
Member Avatar for nu2cpp

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.

Member Avatar for nu2cpp
0
204
Member Avatar for ramya_bugbuster

You can see VCSpawn Fails During Build ( [url]http://support.microsoft.com/kb/327146[/url] ). Maybe workaround in this KB will help you.

Member Avatar for ramya_bugbuster
-1
509
Member Avatar for greekboy

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. …

Member Avatar for Asat232
0
79
Member Avatar for Eulerito

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",...); …

Member Avatar for Asat232
0
117
Member Avatar for Asat232

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.

Member Avatar for jephthah
0
108
Member Avatar for xzaqwer

What kind of device do you have? Mass storage, CDC, HID or something else...

Member Avatar for Asat232
0
99
Member Avatar for Asat232

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.

Member Avatar for Serunson
0
35
Member Avatar for Aamit

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: // …

Member Avatar for Asat232
0
231

The End.