|
i have cyrillic strings as string constrwints in reesource.
i load it as:
CString str.LoadString(IDS_STRING1);
and the result is {"I?IAA?AE A?OEEOEE"}
any ideas?
were rgrtgrtvrtrt rtrtb brt tyuhjghj hbhbnh hnjm 1234567?
|
|
|
|
|
hummm hummm, what does that mean ?? :p
well, i think you've probably forgotten to specify you were using UNICODE, however, the unexpexcted "I?IAA?AE A?OEEOEE" appears.
am i false?
have a look at TCHAR definition & use...
TOXCCT alias Nicolas C.
|
|
|
|
|
You need to work in a computer with Cyrillic support, for example in Hebrew, or Arabic language.....
Use string type TCHAR
Then Use ::LoadString(HINSTANCE, UINT, LPTSTR, int).....
Best Regards
Carlos Antollini
Do you know piFive[^] ?
|
|
|
|
|
use Unicode (define _UNICODE macro and proper entry point for executable). See MSDN for detailed description
|
|
|
|
|
I am searching for a good way to inform an object which paints into a CView window if the user tries to close the view.
It's very important for me that my paint object first stops its painting and then do an deinitialization before the view can be closed. So I must catch the close event, send an information to the paint object and then send the close message again to the view.
Any good ideas?
Thanks in advance.
|
|
|
|
|
Try adding a handler for OnDestroy() to your view. Call your deinit routine, and then call the base class CView::OnDestroy().
onwards and upwards...
|
|
|
|
|
Hi gurus,
All resides in this simple question:
How to get rights accesses of a shared folder programmatically?
I tried the NetShare* API but the permission value of the PSHARE_INFO_502 structure is not supported on WinXP/2003 (it is said in the doc of the structure). MSDN says to use Authorization API.
Can anyone show me how to retrieve this information? I tried AccessCheck, but it seems complex to initialize.
From a network shared folder, I simply want to check if I can read or write on this shared folder.
Please help!
Thanks!
|
|
|
|
|
Hi everybody,
Has anyone ever suceeded in drawing a Circle in C++; in the Shell Command with characters like '*' ? I tried a few combinations but the best alternative I have developed a Circle in form of a pentagon, but is it possible to draw a 360 degree Circle in the Shell Command ?
best regards
Tolga
|
|
|
|
|
Its the resolution that is your problem, drawing a perfect circle with carrots or periods would be difficult unless you could make it big enough. For an example of what I'm talking about, go into paint and make a circle, then zoom into it, and you'll see how the pixels are arranged to create the illusion of the circle to the human eye.
Hope it helps.
~Tony
|
|
|
|
|
Hi all,
I am a beginner into Visual C++ programming.
I have recently developed an application in Microsoft Visual Studio 6.0 on Windows XP Professional. This application uses MFC42.DLL, MSCOMCT2.DLL and MSVCRT.DLL as shared DLLs. I created a media disk using InstallShield for Microsoft Visual C++ 6.0. On installing the application on Windows NT, the Windows NT machine crashed giving the Blue Screen of Death.
My first question, could my application have caused this crash or was it just a coincidence. The cause of the crash is not known yet.
My second question, in order for this application to run properly on any older Windows platforms, viz. Windows NT, Windows 95 or Windows 98, what must I do?
Any inputs, suggestions or any links giving more information about this problem will be highly appreciated.
Best Regards,
abhijo...
|
|
|
|
|
All you need to do is to set the appropiate defines before including the windows headers files (either windows.h etc for sdk or afx....h for MFC), you will usually find these includes in stdafx.h. Set them according to this table:
Windows 95 and Windows NT 4.0 WINVER=0x0400
Windows 98 and Windows NT 4.0 _WIN32_WINDOWS=0x0410 and WINVER=0x0400
Windows NT 4.0 _WIN32_WINNT=0x0400 and WINVER=0x0400
Windows 98 _WIN32_WINDOWS=0x0410
Windows 2000 _WIN32_WINNT=0x0500 and WINVER=0x0500
Windows Me _WIN32_WINDOWS=0x0490
XP _WIN32_WINNT=0x0501 and WINVER=0x0501
Internet Explorer 3.0, 3.01, 3.02 _WIN32_IE=0x0300
Internet Explorer 4.0 _WIN32_IE=0x0400
Internet Explorer 4.01 _WIN32_IE=0x0401
Internet Explorer 5.0, 5.0a, 5.0b _WIN32_IE=0x0500
Internet Explorer 5.01, 5.5 _WIN32_IE=0x0501
So say if you wanted to run on all platforms, set WINVER=0x0400 and optionally _WIN32_IE=0x0300 for IE.
Out of intrest, is it your app that crashed on NT or was it installsheld? I would try manually copying your app to the NT box and running it - if it is using features not available in that OS, you should get messages up like "the produre entry point blah blah was not found in blah blah.dll)
|
|
|
|
|
Thanks a lot Diddy.
It was neither the app nor installshield. It crashed due to lack of disk space on the NT Partition. It has been sorted out now.
I will make the change you suggested. In addition to that, I will try copying the app manually and try to run it. If it works, then I would try doing it thru installshield.
Cheers.
|
|
|
|
|
No problem
Blue screened due to lack of disk space?! Good old M$
|
|
|
|
|
Hey, I create a modeless Dialog in my SDI view-class. Now I tried to send a message from the modeless dialog to the (parent) view class.
GetParent()->SendMessage...
No success.
The adress returned from GetParent() is not the adress from my CView. It returned the adress from CMainFrm. Why?
How can I get the adress from my CView from within the modeless dialog?
|
|
|
|
|
i don't have mind to have read that we could access a parent handle like this.
what you can simply do is to give the handle when you create the son dialog (by the constructor for example)...
anyway, if such function exist, prefer the member function to the global one.
TOXCCT alias Nicolas C.
|
|
|
|
|
Didn't you forget to pass a pParentWnd parameter to dialog constructor or Create function? If you omit it, the parent of dialog is set to main frame window.
Robert-Antonio
|
|
|
|
|
How to change the Backgroung of Menubar,statusBar,toolbar in VC++
Can sizes of buttons on the toolbar be customized?
|
|
|
|
|
hi man, dit you have a look on that page :
http://www.codeproject.com/menu/
i'm sure you will find whatever you're looking for, and probably more !
TOXCCT alias Nicolas C.
|
|
|
|
|
Can anyone help me to start off a crc checksum program that will check entire cd's or dvd
|
|
|
|
|
There's a dandy CRC-32 article here[^].
Heard in Bullhead City - "You haven't lost your girl - you've just lost your turn..." [sigh] So true...
|
|
|
|
|
I use a dialog box to open wave file. The full path of file will be copy to a char* variable 'pInputFileName' by CFile::GetFilePath and a variable 'pInside = "..\in.wave" but when i use CFile f; fin.Open(....) and finput.Open(...) a problem will create one file will open not two file. The full path name of file that will be opened by CFile has "\" Not "\\".
If you write this will see my problem.
Thank you.
Mehdi Hosseinpour
|
|
|
|
|
Can you provide a relevant code snippet (i.e., just the code necessary to recreate the problem)?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
it's hard to understand everything...
anyway, we're here on an "international" site, that's powerful to progress, isn't it?
i'd like to know why you don't try to open your file basically by streams, with <font style="color:blue;">#include</font> <iostream> ?
There are so many operations you can do like this, it would probably be more simple for you....
TOXCCT alias Nicolas C.
|
|
|
|
|
Has somebody an idea how to make a "virual hard disk"?
The disk needn't be readable. I yast want to be notified when a new file is created (or moved) in it.
At the moment I mounted a directory to a hard disk ("subst y: C:\temp")
and catch the notifiction on this folder via FindFirstChangeNotification, FindNextChangeNotification, ...
Maybe someone know how to do this with a device driver?
Tanx
Möhre
|
|
|
|
|
If you want a 'real' disk, then yes, you are into device driver land. You could just the DefineDosDevice function to define a disk from a folder (thats how subst.exe does it), and then use QueryDosDevice to find out what the folder that drive maps to is .
So say if you had drive y: substed to C:\temp, at the moment you are telling findfirstchangenotifaction to watch C:\temp, you could use QueryDosDevice to programmatically find out which folder y: maps to, so you would have somthing like:
FindFirstChangeNotification(MapDriveToFolder("Y:"), ....)
where MapDriveToFolder is a helper function that calls QueryDosDevice and returns the folder the drive maps to.
|
|
|
|