|
I've used templates with similar problems, but it won't work with this scenerio.
Thanx anyways!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
How about:
#define fileName "data.dat"
or something like that?
|
|
|
|
|
Macro's won't do...I needed to have the ability to change the value at runtme.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
hello can any one send me the details for connecting an oracle data base from vc through ADO....and how the date type data are manipulated(adding,checking greater etc)...
please respond to me as early as possible
my mail:tomathewjohn@yahoo.com
|
|
|
|
|
does anyone know how to use command line arguments with the Microsoft VC6.0?
thanks
|
|
|
|
|
Depending on which arguement that you are trying to use, you can set the command line parameter in the Project | settings menu option.
You can either select the different tabs in order to get a form to customize the command line, or you can directly edit the command line arguements in the edit box at the bottom of most of the tabs.
|
|
|
|
|
Marwan wrote:
does anyone know how to use command line arguments with the Microsoft VC6.0?
thanks
Nope! No one would know. Only devs at MS would.
Just kittens.
However why would you wanna use dev studio cmdline...?
Are you trying to compile, link from the command prompt...?
Cheers
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Hi
I'm using CFileFind::GetLength() to get the size of a file. I'm storing the results to a double. The number returned is over 124000 bytes, the actual file size is about 10k. Am I doing something incorrectly? Any help would be appreciated.
Thanks
modified 12-Jul-20 21:01pm.
|
|
|
|
|
Call FindNextFile once before calling GetLength
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
I tried that and it still returns the length of the file as 1241156 instead of 151387. The code looks something like this:
CFileFind Finder;
Finder.FindFile(Filename);
Finder.FindNextFile();
double size=Finder.GetLength();
modified 12-Jul-20 21:01pm.
|
|
|
|
|
First verify that FindFile returns non-zero.
non-zero indicates success.
If FindFile() fails then FindNextFile will not work properly. Naturally GetLength() will also return abnormal values.
So chk and see if FindFile returns a non-zero value.
Nish
Nish was here, now Nish has gone;
He left his soul, to turn you on;
Those who knew Nish, knew him well;
Those who didn't, can go to hell.
I like to on the Code Project
Sonork ID 100.9786 voidmain
www.busterboy.org
|
|
|
|
|
FindFile returns successful, but FindNextFile() will fail since I've given it the exact file to find.
modified 12-Jul-20 21:01pm.
|
|
|
|
|
I would like to implement some form of IPC, however I can't decide which approach to take..?
I am considering ReadProcessMemory etc...But wouldn't this be more work than nessecary...?
Could the same, but easier be accomplished with file mapping...?
It's to my understanding that ReadProcessmemory would only be required if the differeing applications didn't (at design) have the need to communicate. ReadProcessMem... could then be used to read memory into the desired process and acted on accordingly.
How much work would it be to implement File mapping for both sides, compared to ReadProcessMemory...?
Any suggestions...? ReadProcess could cause page faults huh...if used incorrectly..
Thanx
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
Look at shared sections. This will allow 2 or more processes to access this IPC section.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
I'll check it out.
Thanx
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
I have a form view (inside Leo Moll's Property Sheet View) with controls in it. When I resize the window I get screen flicker in a major way.
Since I do not draw the controls, I can overwrite the OnDraw function. Where should I add my double buffering? Or is there another way?
Thank You
XP
|
|
|
|
|
Have you tried using Keith Rule's CMemDC class?
Jon Sagara
What about ?
Sonork ID: 100.9999 jonsagara
|
|
|
|
|
I can't figure out where to but in this case.
|
|
|
|
|
Set the dialog control to clipchildren. Then when it paints, it will not erase the controls.
Also, if a control is flickering that doesn't have children and you will always repaint the control fully, then disable WM_ERASEBKGRD.
Tim Smith
Descartes Systems Sciences, Inc.
|
|
|
|
|
I am using Microsoft Vision SDK. I need to be able to open multiple bitmaps at onces, work on all of them and store the results as a txt file. Any ideas on how to cycle through all of the bitmaps opened and have a txt open/save dialog in addition to the bitmap one?
Your answer is greatly appreciated.
Ali Mustafa
ali@maiinc.com
|
|
|
|
|
I've viewed the related articles on CP about CPU Useage and have only concluded that ntQueryPerfomanceCounter..?(i think) Is the only way to return CPU useage.
I don't suppose this works(or there exists a workaround) for WIN98...???
Thanx a bundle!
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
As far as I know, QueryPerfomanceCounter is the only way to obtain current CPU usage and according to the docs, it is compatable with W95 and W98. I believe there are few libraries around here that encapulate it. WFC is one.
|
|
|
|
|
Funny cuz I was just on CodeGuru and read a message thread with your name in it. I'll assume it was you, because the disscussion "CPU Usage".
Actually what i really wanted was CPU usage of each process.
I'm already using the RDTSC to perform code profiling and was curious if there was a way to return process usage (proportional to rest of system) as well. Turns out (so far anyway) that this would require a whole lot more work then i'm ready to put forth.
I'm assuming you'd have to count the clocks of each process at each task switch...?
In anycase, to much homework for me right now...
Thanx
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|
|
HockeyDude wrote:
Funny cuz I was just on CodeGuru
You bad bad boy!!!!
LOLOLOL
Nish
Sonork ID 100.9786 voidmain
www.busterboy.org
If you don't find me on CP, I'll be at Bob's HungOut
|
|
|
|
|
I much prefer codeproject.
It has a far more pleasant interface, cooler colors and that little martian dude.
"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
|
|
|
|