|
|
There is a WIN32 function GetFileVersionInfo to get file version information. Is there a "SetFileVersionInfo" or similiar WIN32 function to change the version information?
|
|
|
|
|
There is a WIN32 function GetFileVersionInfo to get file version information. Is there a "SetFileVersionInfo" or similiar WIN32 function to change the version information?
|
|
|
|
|
Up to my knowledge, this information is stored in the DLL as a resource! So you can change it at design time from within your compiler! What do you mean changing the value at runtime? In memory only or do you want the chage to be permenant?!
|
|
|
|
|
I know UpdateResource can be used to make the change. Do you know if there is an example showing how to change version information permanently using this function? In MSDN, there are some links about how to change dialog resource and string table resource using the function. But I didn't find anything about version.
Thanks.
|
|
|
|
|
Which C++ date/time function will work to populate a variable of type DBTIMESTAMP?
|
|
|
|
|
Does anyone know how to comment out a LARGE chunk of code in a C++ file.
I know the /* comment here */ but if you want to comment out large portion
of a file and have /* comments */ within the file you have to make /* */ all over the place to do the large part. i.e. I would like to comment out the entire file (or close to it). Some thing like a symbol at the beginning of the
file and one at the end of the file, but nothing in the middle that will stop the comment short. Thanks a bunch in return.
Keener
|
|
|
|
|
#if 0
bunch of code
#endif
------------------------------
Smaller Animals Software, Inc.
http://www.smalleranimals.com
|
|
|
|
|
Hi,
I'm working on making an application NLS compliant which is mainly dialog based. What I've to do is I need to load the application's dialog from a resource dll based on the operating system's language. My implementation is as below.
GetUserDefaultUILanguage = (GETUSERDEFAULTUILANGUAGE*)GetProcAddress(hClusAPI, "GetUserDefaultUILanguage");
LANGID Language = GetUserDefaultUILanguage();
_stprintf(g_tcsTemp, _TEXT("res%x.dll"),Language);
if(strcmp(g_tcsTemp, "res409.dll"))
{
HMODULE hLibrary = LoadLibraryEx(g_tcsTemp, NULL,LOAD_LIBRARY_AS_DATAFILE);
if(hLibrary!=NULL)
AfxMessageBox("Other library has been successfully loaded in the system");
HRSRC ResInfo = FindResource(hLibrary,"#102",RT_DIALOG);
ResHndl = LoadResource(hLibrary,ResInfo);
}
else
{
HMODULE hLibrary = LoadLibraryEx(g_tcsTemp, NULL, LOAD_LIBRARY_AS_DATAFILE);
res = GetLastError();
HRSRC ResInfo = FindResource(hLibrary, "#102",RT_DIALOG);
ResHndl = LoadResource(hLibrary, ResInfo);
}
dlg1.CreateIndirect(ResHndl,NULL);
dlg1.ShowWindow(SW_SHOWNORMAL);
This method seems to work, but since CreateIndirect returns immediately the dialog is seen for a fraction of second. Then I used InitModalIndirect API instead of CreateIndirect making the dialog resource modal. Dialog comes up but it always gives assersion in ASSERT(m_lpszTemplateName == NULL);(DLGCORE.CPP line no.430).
nResponse = dlg1.InitModalIndirect(ResHndl,NULL);
dlg1.DoModal();
If any one knows about NLS implementation by loading dialog from resource dll, Please let me know.
Thanks in advance,
Lakshmi.
|
|
|
|
|
Why don't you use a message loop after createIndirect?!
|
|
|
|
|
Hi,
Can u please elaborate
Thanks,
Lakshmi.
|
|
|
|
|
After CreateIndirect use something like:
MSG msg;
while (PeekMessage(&msg, NULL, 0, 0, PM_REMOVE)
{
if (!IsDialogMessage(&msg))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
|
|
|
|
|
If dlg1 is a local variable then this is might be your problem. The CDialog dtor makes a call to DestroyWindow, so once the end of the function's scope is reached, the dialog will be automatically destroyed.
Try makeing the dialog a data member.
-Ben
---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic"
|
|
|
|
|
I am developing a palm conduit in VC++, but I'm kinda stuck.
There are 3 parts to my question:
1. How do I connect to a URL and give it access to a page that requires a username and password?
2. How do I extract JUST certain peices of data from the web page (I know exactly where they are)?
3. How do I send back that data (download it)?
Rob Brunner
|
|
|
|
|
I want to know how can I (check the ex)
If I create a list I in the list I load 5 files when I click on the Compress button, he make ONE file with all the five in like a Self-Extractor but I don't want the Self-Extractor Sample
TIA
BLaZe
ICQ # 71682311
email : mpblaze@iquebec.com
|
|
|
|
|
Hello, I'm trying to access a variable in theApp from int CMainFrame::OnCreate(LPCREATESTRUCT lpCreateStruct) using theApp.m_variable to access it.
.. when I type the "dot" in theApp.m_variable I get the list of all the variables in theApp but when I compile the whole lot, I get the error: "left of '.m_variable' must have class/struct/union type"!
One being bugged!
|
|
|
|
|
Place the following line at the top of MainFrm.cpp or in a header file if you use it a lot.
extern CMyProgramApp theApp; // This object is defined in CMyProgram.cpp
You could also use
CMyProgramApp* MyApp = (CMyProgramApp*)AfxGetApp();
|
|
|
|
|
Hello,
I urgently need help regarding the following.
1. I have made a VB OCX Chart/Graph control to be used within VC++ and i want to pass an array of data values to it through VC++.
Please guide me reagrding the same.I shall be ever thankful.
thanks in advance
-------------------------------------------
Dashmesh A. Singh
Tata Consultancy Services,
INDIA
e-mail: visions_next@yahoo.co.uk
dashmesha_singh@tcscal.co.in
|
|
|
|
|
Look at SAFEARRAY examples in MSDN!
|
|
|
|
|
Hi,
I can't remember and find the information about disabling an item in a ctreectrl, ie the item can't be selected, expanded, etc ...
Thanks a lot
Nicolas
|
|
|
|
|
In MFC, if I use _spawnl( _P_WAIT, process 2, str2, str3, str4, NULL ) function to call process 2 in process 1. How can I get the str2, str3... in process 1? Thanks. And can I hide the window of process 2 when the process 2 is running?
Kidd
|
|
|
|
|
Don't use _spawnl(). Use CreateProcess(), which is well-documented in the Win32 API documentation.
|
|
|
|
|
> How can I get the str2, str3... in process 1
If you spawn() from process 1 you already have str*. If you want to access the parameters in process2 (the spawned one), you'll have to use argc/argv arguments of main(). If process2 is MFC app, you can access the parameters using __argc and __argv which are global variables.
You can also play with ::GetCommandLine() API function.
Tomasz Sowinski -- http://www.shooltz.com.pl
|
|
|
|
|
Is there a way to let a program minimize/maximize from/to the systray? .. well, I know there is a way but how do you do it?
thatman - now doing the systray thingie
|
|
|
|
|
look here:
http://www.codeproject.com/datetime/traycalendar.asp
good luck
Le Ridder Noir
Considderd to be the worlds fastest knoppenbonker.
10 Months of working experience with the worlds fastest copie paster(about 2000 lines a minute).
And experience with the one and only NewEra Guru.
|
|
|
|