|
Andreas Saurwein wrote:
Other apps run fine with similar configurations.
So it seems you'll ultimately have to call FindResourceEx...
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Tomasz Sowinski wrote:
you'll ultimately have to call FindResourceEx
Thanks for turning my day into hell
There must be something else... (is there?)
int x=1, y=5;
x^=y^=x^=y;
<a href="http://www.codeproject.com/tips/StupidXORTrick.asp" target="_blank">ClickHereForHelp();</a>
|
|
|
|
|
Andreas Saurwein wrote:
Thanks for turning my day into hell
No problem. The bill will appear on your monthly CC statement
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Hello Everybody ok, here is my code:
HKEY keyHandle;
char *rgValue = NULL;
PLONG buffLen = NULL;
if(RegOpenKey( HKEY_LOCAL_MACHINE,
"Software\\Microsoft\\Windows\\CurrentVersion",
&keyHandle) == ERROR_SUCCESS)
{
//MessageBox(_T("Key was opened"));
RegQueryValue(keyHandle, "MediaPath", rgValue, buffLen );
MessageBox(rgValue);
}
What I want to do is to query the registry value of MediaPath and store it in the rgValue variable. I looked at it in MSDN and I did exactly that it says. I tryed a couple of times and nothing is being saved in rgValue. Have you guys had this problem before. What should I do? Am I missing something? Any anwer is more than welcome.
Have a good day,
Luis E. Cuadrado
)
|
|
|
|
|
You need to initialize buffLen with an address of variable containing max size of buffer before calling RegQueryValue.
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Hi Tomasz:
Thank you for your quick reply. This is what I did to my code after reading your reply:
HKEY keyHandle;
char rgValue[MAX_PATH];
DWORD buffLen = MAX_PATH;
if(RegOpenKey( HKEY_LOCAL_MACHINE,
"Software\\Microsoft\\Windows\\CurrentVersion",
&keyHandle) == ERROR_SUCCESS)
{
//MessageBox(_T("Key was opened"));
RegQueryValue(keyHandle, "MediaPath", rgValue, (PLONG) buffLen );
MessageBox(rgValue);
}
Is that what you meant by initializing buffLen? I'm new in MFC specially reading registry stuff, so I apologize for my ignorance.
Luis E. Cuadrado
)
|
|
|
|
|
It should work. BTW: 'registry stuff' you're using now isn't MFC, its plain Win32 API.
Tomasz Sowinski -- http://www.shooltz.com
Free your mind and your ass will follow.
|
|
|
|
|
Yes, that is what he meant, except for:
LONG buffLen = MAX_PATH;
RegQueryValue(keyHandle, "MediaPath", rgValue, &buffLen );
Btw, you should use RegQueryValueEx .
Michel
It is a lovely language, but it takes a very long time to say anything in it, because we do not say anything in it, unless it is worth taking a very long time to say, and to listen to.
- TreeBeard
|
|
|
|
|
Hello:
Well, I started to look to RegOpenKeyEx and RegQueryValueEx in MSDN. I used those in my code and it works. The help that you guys provided to me worked with these too. I want to thank you guys (Thomasz and Michel) for your help. I really appreciate it.
Take care,
Luis E. Cuadrado
)
|
|
|
|
|
Does anyone know if there is an API call for sending an HTML mail? As far as I know MAPI does not support the sending of HTML. Is MIME the only way to go? What other options are available? Any suggestions will be greatly appreciated
|
|
|
|
|
Many people tired of SPAM toss HTML email directly to garbage. If you have something important to send, use plain text.
|
|
|
|
|
It is for a client whose instructions were: "I don't want to have to click on anything it must just be there...." What can one do? A friend I asked for advice send me the folowing reply:
No one should be using HTML mail in the first place..
It's GAY
It's LAME
It's USELESS!
|
|
|
|
|
|
No, thanks for the advice but I found a great article on CodeGuru using MIME.
|
|
|
|
|
Sir, I want to display an image in a ListBox. An image is larger than the ListBox. The ListBox may have scrollbars. I want the solutin in through which the whole image can be viewed by scrolling. Please help me.....
C.R.Naik
|
|
|
|
|
http://www.codeguru.com/forum/showthread.php?s=&threadid=206641
|
|
|
|
|
Hi,
I need to integrate an interactive movie into a
Windows Application. I think that it is possible
to integrate Macromedia Flash 4 as an ActiveX
control into a host windows application.
Could you point me to an information source how
this can be done?
Thank you in advance.
Z.
|
|
|
|
|
Use the webbrowser control and load some HTML in it that loads the flash.
/Magnus
- I don't necessarily agree with everything I say
|
|
|
|
|
i just did this myself without using an html thingy ... it was a dialog based app but i dont think thats an issue ... let me know if you need the source code and i'll send it to you ... its very simple
"... and so i said to him ... if it don't dance (or code) and you can't eat it either f**k it or throw it away" sonork: 100.18128 8028finder.com
|
|
|
|
|
Is it possible to give a minimize attribute for a PropertySheet? If so, could you show example?
Thanks!
William
|
|
|
|
|
Just pass a WS_MINIMIZE style to the Create Function.
Have a look here[^] [MSDN]. Should answer your question
Regards,
Brian Dela
|
|
|
|
|
I'm not using the Create function. I'm doing the following:
class CControlProp : public CPropertySheet
{
CControlProp(LPCTSTR pszCaption, CWnd* pParentWnd = NULL, UINT iSelectPage = 0);
etc.
}
and in my CControlProp::InitInstance, I do:
CControlProp cp(_T("Common Controls"));
cp.DoModal();
return FALSE;
======================
The caption and the close box for the PropertySheet appears, but I would like to get the minimize box to show also.
Thanks again for any clue.
William
|
|
|
|
|
You'll have to handle WM_CREATE and use ModifyStyle to add WS_MINIMIZEBOX style.
Tomasz Sowinski -- http://www.shooltz.com
"Yields falsehood when preceded by its quotation" yields falsehood when preceded by its quotation.
|
|
|
|
|
I'm writing a Software which generates C-Code. This kind of Generator works calls during runtime msdev from command line to test the generated source-code. This works perfectly if VisualStudio is installed on a system but actually if this peace of generator is installed onto an other system I have to check if visual studio is installed. Does anybody know how to check if Visual Studio itself is installed on a system (checking with vc++ code) and how to get the binary-directory of vc?
thanks a lot in advance.
flo
I don't want achieve immortality through my work - I want achieve it through not dying - Woody Allen
|
|
|
|
|
Search the registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\6.0\InstallDir for VisualStudio 6.0.
Sonork 100.15206;PavelK
|
|
|
|