|
Hai,
Please let me know what is the name of the library file needed for wWinmainCRTStartUP in EVC++ And what is the use of wininet.lib and corelibc.lib....Because i am having confusion while using in my coding.
Thanks And Regards
Harshadha
|
|
|
|
|
How do I change the height of the statusbar?
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
There is a member variable for a status bar called m_nMinHeight;
If you have subclassed the status bar you can set it in the constructor;
Otherwise you can send the status bar a SB_SETMINHEIGHT message setting the WPARAM to the required height.
|
|
|
|
|
Many thanks.
BTW, after you send the message, you have to call UpdateWindow.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
|
|
|
|
|
I need to convert the TCHAR value to string.
amit
|
|
|
|
|
this does mean much, but is this ok for you :
std::string str(CT2A(mytchar));
i'm not sure that will work, but as i don't know either what and why you want to do that, i cannot help much.
|
|
|
|
|
Well,thanks
i elborate ,
i have one value which is came from listview
<br />
TCHAR buff[MAX_PATH]={0}; <br />
hwnd = GetDlgItem(hwndParent,IDC_LISTVIEW);<br />
ListView_GetItemText(hwnd,0,0,(LPWSTR)&buff,MAX_PATH);<br />
string FileToUpload = util.ConvertWCHARToString(buff_input);//param is in WCHAR *
i want to use diretly buff converted value into FileToUpload string variable
suppose buff having
buff=_T("c:\xyz.wmv");
then how we will convert it into string.
if possible can you convert it into WCHAR *, it will ok.
otherwise if possible then string.
AMIT
|
|
|
|
|
What's wrong with:
TCHAR buf[256] = _T("Hello World");
wstring str = buf;
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
how to find if a particular registry entry is present or not. In one of my project , when the application starts it need to check if a particular registry is present,if present it would follow a different course. Pls help.
Thanks..
vikram
|
|
|
|
|
Have a look at the CRegKey class in MSDN.
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
thanks mate... CRegClass proved to be help ... i am using it in my code.. thanks..
~VIKRAM
|
|
|
|
|
Try to open the key with ::RegOpenKeyEx with the security access mask set to REG_QUERY_VALUE to avoid errors due to insufficient rights in case the user is not an administrator or priveliged user. If the call returns ERROR_SUCCESS the key is present and if you're interested in the value of the key you call ::RegQueryValueEx .
Close the opened key with a call to ::RegCloseKey .
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
|
|
|
|
|
Thanks Mate...
|
|
|
|
|
|
Cregistry class is helpful.. thanks .. ... but for the time being i have sticked to using CregKey.
~VIKRAM
|
|
|
|
|
I hope you successful
|
|
|
|
|
Hi
int result=CreateDirectory(LPCSTR(Dir_Name),NULL);
The above statement return 0 if i use WCHAR pointer(Dir_Name).
why ?
manu
|
|
|
|
|
manu_2205 wrote: int result=CreateDirectory(LPCSTR(Dir_Name),NULL);
1. Why do you need that LPCSTR there?
2. Is your project unicode aware?
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
ya project unicode aware , if i do't write LPCSTR it generate compile time error.
"error C2664: 'CreateDirectoryA' : cannot convert parameter 1 from 'WCHAR *' to 'LPCSTR'"
manu
|
|
|
|
|
manu_2205 wrote: "error C2664: 'CreateDirectoryA' : cannot convert parameter 1 from 'WCHAR *' to 'LPCSTR'"
dont use LPCSTR, but CA2W()
|
|
|
|
|
manu_2205 wrote: 'CreateDirectoryA
If your project is unicode aware, then how is the ANSI version of a function being called? Are you making a call explicitly to the CreateDirectoryA() or are you just calling CreateDirectory() ?
manu_2205 wrote: ya project unicode aware
Now what do you mean by this? Have you replaced _MBCS with _UNICODE in the preprocessor definitions? ( project->settings->c/c++->preprocessor definitions )
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
LPCSTR(Dir_Name) is a bug. You have to convert the WCHAR to LPCSTR in another string.
Maybe you can use CreateDirectoryW( Dir_Name,NULL);//with a big W for WCHAR
Greetings from Germany
|
|
|
|
|
I have built a proxy server for accessing and modifying yahoo messages. All other yahoo packets are just forwarded.My problem is that Sometimes I dont get the buddy list, and it just hangs up, though I am reading the full packet. And also , when the proxy server is suddenly stopped, when a user is online, yahoo messenger crashes showing a error in fw32.dll, which is a dll from a third party used by yahoo messenger.
Anybody please Help???
|
|
|
|
|
spsharma wrote: when a user is online, yahoo messenger crashes showing a error in fw32.dll, which is a dll from a third party used by yahoo messenger.
are you using LSP or you hooking the WinSock .dll
"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
Support CRY- Child Relief and you
|
|
|
|
|
Hi Everyone
I am using CRecordSet to read data from a SQL database. For an image column, it retrieves the data correctly the first time I try. When the image data is changed in the database, the next query pulls back a string of zeroes instead of the actual data in the database.
I am using a CLongBinary member in my derived class to represent the image data, and RFX_LongBinary() to exchange the data.
I have even tried deleting and recreating the CRecordSet object, and I STILL get the same behaviour!
Anyone seen this / got any ideas how I can debug it?
cheers,
Neil
|
|
|
|