|
Hi!
I need to make a relative path, using 2 absolutes paths.
Assume
path1: C:\MyProjects\Tool\Tool.exe
path2: C:\MyProjects\Docs\MyDoc.txt
The output should be ..\Docs\MyDoc.txt
How do I create the relative path??
Thanks and best regards,
Dominik
_outp(0x64, 0xAD);
and
__asm mov al, 0xAD __asm out 0x64, al
do the same... but what do they do??
(doesn't work on NT)
|
|
|
|
|
|
You can use the _fullpath function in C/C++.
|
|
|
|
|
I have to write a windows service in VC++ 6 and need to make a web-based front end for viewing the current state and configuring the running service. What would be the best way to build a web-based front for a service? I am thinking of using sockets at the server and then a C# based front end because it is easy to do socket communication with it. Any suggestions?
|
|
|
|
|
Hi,
As an experiment I was trying the following code:
<br />
CString MyNumber = "23.5";<br />
double mynum = atof(MyNumber);<br />
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)<br />
printf("Data Type = Float");<br />
else<br />
printf("Data Type = Double");<br />
<br />
MyNumber = "123456789.12345";<br />
mynum = atof(MyNumber);<br />
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)<br />
printf("Data Type = Float");<br />
else<br />
printf("Data Type = Double");
However, this always displays the text "Data Type = Float", so I thought that perhaps the atof() function was loosing accuracy. Does anybody know why the floating-point range test doesn't work?
Best Regards,
Lea Hayes
|
|
|
|
|
123456789.12345 is less then 3.4E+38.
Try this:
MyNumber = "1234567890123456789012345678901234567890.12345";
mynum = atof(MyNumber);
if(mynum >= 3.4E-38 && mynum <= 3.4E+38)
printf("Data Type = Float");
else
printf("Data Type = Double");
|
|
|
|
|
Hi,
I don't know how, but that has solved my problem!
Thanks for your help,
Lea Hayes
|
|
|
|
|
I’d like to Decode a UTF-8 string to a regular CString. I’m using MFC and don’t really know where to start.
I'm reading a UTF-8 coded file using CStdioFile and CFile.
Has the _T(“…”) something to do with it?
_____________________________
...and justice for all
APe
|
|
|
|
|
Try MultiByteToWideChar(..) .
Robert-Antonio
"What do you mean, I can't initialize things in assert()?"
|
|
|
|
|
Some how i am not to view the class view tab in my workspace. It happened when i was compiling the proj and it crashed. when i reopened it i wasnt able to view classview tab. everytime i open the workspace i get following warning:
cannot access classview information file.ClassView information will not be accessible.
What Is the solution to this problem???
|
|
|
|
|
Anonymous wrote:
Some how i am not to view the class view tab in my workspace. It happened when i was compiling the proj and it crashed. when i reopened it i wasnt able to view classview tab. everytime i open the workspace i get following warning:
cannot access classview information file.ClassView information will not be accessible.
What Is the solution to this problem???
At a guess. I'd say that the crashed MsDev process is still running. Have a look at the process list via taskmanager and kill the msdev.exe process
Michael
CP Blog [^]
|
|
|
|
|
Its a pain when u lose this info . i'd suggest that u look in the task manager and kill msdev.exe if its running . if this doesnt work go to ur project folder and delete
the .clw,.aps,.ncb files and reopen ur project . Hopefully things shld be back .
Engineering is the effort !
|
|
|
|
|
Hi
can some body give the website address for free download of VC++ books. like Beginning Atl Com Programming. it is there on net but now i have forgotten where it was.plus there is a big help file named VC6.chm which around 135 mb. can anybody give the link to download.
Thanks
Swarup
|
|
|
|
|
http://mspress.microsoft.com/
try this link
|
|
|
|
|
ftp.runnet.ru/BOOKS
Ivan Cachicatari
|
|
|
|
|
Hi,
I want to use the NDIS I/O Port functions that works in the kernel mode. If any one can provide me with a working example it will be great.
Thanks
|
|
|
|
|
What exactly are you looking for?
Don't try it, just do it!
|
|
|
|
|
I'm looking for a ready made code that send and recieve data using the NDIS I/O port functions
|
|
|
|
|
I was away from net for a week; checked today and found remarks from ur fans well, I did't mean any thing by that title of thread, simply typed without any anything;
perhaps an on forum sorry is needed.
sorry
kriaz
|
|
|
|
|
No apology is necessary. I guess your post could have been interpreted two different ways, but I did not take any offense by it. Carry on.
"When I was born I was so surprised that I didn't talk for a year and a half." - Gracie Allen
|
|
|
|
|
How can I disable a Editbox from one dialog to another dialog where tha editbox is?.
|
|
|
|
|
if dialog1 is the class where the edit box is and dialog2 is the class where u r going to disable the dialog box, then
in dialog1----
dialog2 *d2;
d2->editbox.EnableWindow(FALSE);
|
|
|
|
|
No the editbox is on dialog2 and I want to diable from dialog1
|
|
|
|
|
that's what he wrote...
to add to that, you need to have a pointer to dialog2 in your dialog1.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|
|
I have that but it don't work for me.
// Try to run this from dialog1
CEdit *EditDis; // Dialog2
EditDis->m_Company.EnableWindow(FALSE); // m_Company is EDIT1
The EnableWindow is NOT something I can use,
I do not have it. What Im I doing wrong?
|
|
|
|