|
Is my question too dump? seriously
|
|
|
|
|
Hello everyone!
I'm not quite sure, if this is the correct message board for this thread, but i'm working with C++ so I posted this thread here.
I've created an Win32 Application, which checks if the .net Framework is installed on the system. If not, the program will automatically start to install the .net Framework in the background.
Is there any way to run a Windows Installer Package in the background (command line, etc.)??
For example I have myinstaller.msi or dotnetfx.exe!
How can I solve my problem???
Thank you for helping me!
|
|
|
|
|
You can execute the EXE file with CreatePRocess() and either wait for it to finish or not.
You can run MSIEXEC to run MSI files. You can wait, or not, for the setup to finish.
Now, I have not installed .NET so many times to know if it usually requires a reboot or not. If it usually requires a reboot, then you might as well launch its setup and exit, since the machine will probably have to be restarted anyway.
|
|
|
|
|
Thank you for the tip!
I understand the MSIEXEC.
Blake Miller wrote:
CreatePRocess()
But that's the thing I don't understand.
I'm just a newbie, so could you give me a few lines of code, please?!?!
|
|
|
|
|
Check out this article on starting another program from your current program:
http://www.codeproject.com/threads/CreateProcessEx.asp
You need to call CreateProcess to start the MSIEXEC program which will run the MSI file you use to install .NET
|
|
|
|
|
I want to write a function in VC++ which will create a table(in a new mdb file) in MsAccess and also fill the table with values in the same function. As for creating the database i have to use msadox.dll and for populating database i have to use msado15.dll. But if i import both these dlls i get the following error.
< error C2011: 'DataTypeEnum' : 'enum' type redefinition >
This is probably due to DataTypeEnum being defined in both msadox.tlh and msado15.tlh.
Is there any way in which i can use both the dlls
or any other way i can create and populate the table in same function.
Note :(I got to create database in Access 2000)
With Regards,
Kaustubh
|
|
|
|
|
I did come across this conflict a while back when I needed to use ADO, ADOX and JRO (JET compression).
Try this:
<font color=green>
#pragma warning(push)
#pragma warning(disable:4146)
#import "C:\Program Files\Common Files\system\ado\msadox.dll"
#import "C:\Program Files\Common Files\System\ado\msado15.dll" rename ("EOF","ADOEOF")
using namespace ADODB;
#pragma warning(pop)
I Dream of Absolute Zero
|
|
|
|
|
Hi
i Would like to know How to remove a class from class view in workspace in MFC?
rajesh
|
|
|
|
|
|
Note to self: add "automagically" to vocabulary
I Dream of Absolute Zero
|
|
|
|
|
i tried to statically link the application that i have been developing but its giving an error in map_pp.c. I have no idea why this problem is coming. can anyone help me?
|
|
|
|
|
Hi
ask_you wrote:
can anyone help me?
Yes and no!
NO:
I have no idea about your problem.
YES:
What reports the Compiler / Linker???
- errorcode
- functioncall
- used compiler
- other information
---
Frank
|
|
|
|
|
hi Frank,
sorry, that i misquoted the problem..
the problem does not come when i statically link the application. but when i run the application a system without VC++ installed, it gives the following error:
Debug Assertion Failed:
Program: C:\xyz.exe
File: map_pp.cpp
Line :128
the map_pp.cpp is a MFC file. so i do not where the probwm is. It runs fine on a machine which has VC++ installed in it.
i also want to know if there is some other way other than static linking, such that i can run by application on any windows machine irrespective of whether VC++ is installed on that machine.
Please reply soon,
ask_you
|
|
|
|
|
How to check for a memory leakages for which the memory is allocated by using the GlobalAlloc and LocalAlloc functions.
Regards
Vidya
|
|
|
|
|
CMemoryState can't help you on this as it could only detect new and delete.
How about _CrtMemState, _CrtMemCheckpoint and the supporting APIs used for _malloc_dbg?
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
Please tell me in detail.......
vidya
|
|
|
|
|
|
I also had seen the same sample in MSDN.
Thanks.....
vidya
|
|
|
|
|
OK, the sample works on GlobalAlloc too.
Sonork 100.41263:Anthony_Yio
|
|
|
|
|
HI ,
I need to implement custom print in mshtml i.e iam using my print dialog . I need to know the page range and margins setting. The Exec command takes OLECMDID_PRINT takes these setting in its third parameter.Can anyone tell me how to get it?I need to implement span tag also.
lokiz
|
|
|
|
|
HI .
I WANT TO SEND THE SPECIFICE VALUE TO MY HARD WARE ATTACHED WITH COM PORT .... AFTER SPECIFICE TIME REPETEDLY.
FOR EXAMPLE AFTER EVERY 5 SECONDS I WANT TO SEND A VALUE TO HARDWARE .
HOW CAN I HANDLE IT ( MEANS REPETITION ).
IS IT WITH TIMER ... OR BY CERATING EVENT ...
ANY SAMPLE LINES .. THAT IS BETTER
THANX
|
|
|
|
|
can't you write in lower case ?!
for your problem, set a timer... (SetTimer ())
TOXCCT >>> GEII power
|
|
|
|
|
Hi,
The below function is not working for usergenerated excel files.
AFX_SQL_ASYNC( this, ( ::SQLTables ) ( m_hstmt, strQualifier,SQL_NTS,ustrOwner,SQL_NTS,ustrName,SQL_NTS,ustrType,SQL_NTS ) );
The functions retrieves the parameters if the given excel fiel os genereated by some softwares like DTS but not with the manually generated excel files. Can anyone help me out on this.
Thanks
Chitra
|
|
|
|
|
Try adding a name for your table by doing in excel Insert->Name->Define
Papa
while (TRUE)
Papa.WillLove ( Bebe ) ;
|
|
|
|
|
hi,
how can i get combobox item data?
i used CComboBox::GetItemData(). i dont know how to convert the DWORD value to a string.
any help?
thanks,
jim
|
|
|
|