|
5:20 am EST USA
What the other respondents are saying is correct, there realy is no conversion required.
I suspect that your probably having a character set (font) problem.
INTP
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen
|
|
|
|
|
does anyone have a reliable way to detect whether a user's default input locale is RTL?
this is so that i can dynamically switch the direction of a richedit control.
thanks
.dan.g.
AbstractSpoon Software
|
|
|
|
|
Hello all,
how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files).
also, how can run a non-executable program such as html files (Windows itself to run ie)? a function required.
|
|
|
|
|
Windows' calculator program location: %SystemRoot%\System32\calc.exe.
You can use 'spawn' to start new processes from your own program code.
Er zit een korstje op mijn aars.
|
|
|
|
|
ShellExecute does this for you, the HTML file as well.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Ali Tavakol wrote:
how can I run a program? i want to run the Windows's calculator program which i don't know its location. (i only know that it is in program files).
This article will Help:-
http://www.codeproject.com/system/newbiespawn.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
How To Implement ADSL Dialing in Win2K
--------------------------------------------------------------------------------
I learned from other articles to use RASDial Function to Implement Dialing ,but it seems that It can not apply to ADSL Dialing,Is that true
How Can I Implement ADSL Dialing
ps: Another Question about CFtpConnection
if I got a file handle from this and want to resume downloading a file
but it seemed that CInternetFile's Seek Function can not succeed ,how can I implement Rusuming downloading using CFtpConnection
|
|
|
|
|
Hi,
I'm not even sure of what the subject should be. I searched CP and the forums but couldn't find anything that sounded like my problem.
I have a program that shows the current date/time. However, if I close my laptop and it goes to sleep (hibernate?), when I open it up again my program does not "refresh" and the "old" date/time is still displayed.
The same thing happens on my desktop when I "lock" the computer or logoff. When I log back on, the date/time is not refreshed.
What Windows message does my program need to capture to know that a refresh is necessary? Or am I in even deeper doo-doo?
Thanks,
Abu Mami
|
|
|
|
|
like MoveFileEx(path);
but it only work on win NT,
I want to delete all file in the path after reboot the machine.
thanks!
|
|
|
|
|
DeleteFile will delete a file. MoveFile will move it. MoveFileEx does exist only for the NT stream, but MoveFile is fine.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
szcococut wrote:
I want to delete all file in the path after reboot the machine.
you have to modify the the WinInit.ini file to achieve the same.
It's an INI file, however for deleting it's harder because the format is:
[rename]
NUL=C:\\temp\\file1.exe
NUL=C:\\foo\\file2.exe
and so on. You can\'t use WritePrivateProfileString() because
the second NUL line would replace the first. You need to read
the whole file in,modify it, and write it back out
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
why will the exception appear, when the mfcie's window is maximized from normal or normal from maximized?
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
Warning: constructing COleException, scode = DISP_E_MEMBERNOTFOUND ($80020003).
First-chance exception in Book.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
First-chance exception in Book.exe (KERNEL32.DLL): 0xE06D7363: Microsoft C++ Exception.
the mfcie is a sample of MSDN.
|
|
|
|
|
I had designed a Dialog of Protocol Simulator. Inside the Dialog it have a IP address box to key in the the destination IP address, a edit box to tape your message, some button that when you click it will automatic send a message to the destination, and lastly a send button. I just don't know how to do the program that when I key in the IP address and click the button and it will send the message. I want to test the program using the 127.0.0.1 IP address. Can help me just give some guide and example.
|
|
|
|
|
I have VC2005,which means I have only one lot of headers for libraries like iostream, iostream.h is gone, not present, not part of the equation. I'm building a library for reading DICOM files which builds fine, but cannot link into my main project, I get these errors:
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: void __thiscall std::basic_ostringstream<char,struct std::char_traits<char="">,class std::allocator<char> >::`vbase destructor'(void)" (??_D?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QAEXXZ) already defined in dcmdata.lib(dcitem.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(int)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@H@Z) already defined in dcmimage.lib(diyp2img.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_string<char,struct std::char_traits<char="">,class std::allocator<char> > __thiscall std::basic_ostringstream<char,struct std::char_traits<char="">,class std::allocator<char> >::str(void)const " (?str@?$basic_ostringstream@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBE?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@XZ) already defined in dcmdata.lib(dcitem.obj)
msvcprt.lib(MSVCP80.dll) : error LNK2005: "public: class std::basic_ostream<char,struct std::char_traits<char=""> > & __thiscall std::basic_ostream<char,struct std::char_traits<char=""> >::operator<<(double)" (??6?$basic_ostream@DU?$char_traits@D@std@@@std@@QAEAAV01@N@Z) already defined in dcmimgle.lib(dimomod.obj)
Only a lot more of them. I'm virtually at the point of being willing to offer my firstborn in return for a solution, does anyone have any ideas ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
I am not exactly sure about these linker errors, but I have some similar problem with my project. After much scraching my head and reading forums I found that I was not building my library and executable using same runtime libraries. may be this is problem in your case also.
-Saurabh
|
|
|
|
|
The trouble is, there IS only one set of libraries in VC2005, the old ones have been removed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Sorry I think I was not clear enough.
I also had this problem in visual studio 2005 beta 2 and there are two type of runtime libraries - multithreaded(/MT) and multithreaded dll(/MD). So in my case I was using /MT to build the library and /MD to build the exe and hence the problem.
Hope this helps.
- Saurabh
|
|
|
|
|
Ah.... OK. I am using MD in every case. Thanks tho.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Don't want to appear dense, but are you sure about this? The projects that come with those libs specify /MT for the release build and /MTd for the debug build. Did you change it to /MD?
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
I am positive - I changed it to /MD to match the MFC app. I've had to put several #undef's into my project to get it to compile as /MT, which is what I'm trying now, as I can't find where _AFXDLL is being #defined.
I'm just building that now, having changed the libraries back and having re built them.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
I've had to put several #undef's into my project to get it to compile as /MT, which is what I'm trying now, as I can't find where _AFXDLL is being #defined.
_AFXDLL is defined when you specify that you want to "Use MFC in a Shared DLL". That setting is under Configuration Properties / General / Use of MFC.
--
jlr
http://jlamas.blogspot.com/[^]
|
|
|
|
|
|
Thanks - I will read that later, it seems to be talking about my exact problem. YEah, I've read the forum for dcmtk over and over, and tried everything they suggest.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Christian Graus wrote:
Thanks - I will read that later, it seems to be talking about my exact problem. YEah, I've read the forum for dcmtk over and over, and tried everything they suggest.
No problem, the MSDN link pretty much discusses the include order and how to deal with.
Good luck...
-------------------------------
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
Actually, while these are broadly the errors I am getting, they are not for new, delete or DllMain, so I think this isn't going to solve my problem. It could be a step in the right direction tho....
Christian Graus - Microsoft MVP - C++
|
|
|
|