|
It's not that simple: you cannot simply copy the dll's along your exe the way you did with VC6 (for example).
|
|
|
|
|
Cedric Moonen wrote: you cannot simply copy the dll's along your exe the way you did with VC6 (for example).
I'm well aware of the fact that the dll's can't be copied. I was just making a point of the fact that he didn't understand what was going on.
But on the other hand wouldn't it help statically linking to those dll's ??
( )
Regards,
The only programmers that are better than C programmers are those who code in 1's and 0's.....
Programm3r
My Blog: ^_^
|
|
|
|
|
There is a quick and dirty way to copy your app to another machine, see here[^], not ideal for installation but I have successfully used it to try apps on other XP machines before we got the installer going. You can copy the dlls if you do as they describe.
Sorry - that's not the right link - I'll see if I can find it.
-- modified at 8:10 Thursday 12th April, 2007
Here's the link - this allows you to do it simply by copying files - rough equivalent of having the dlls in the same directory as the .exe before manifests: link[^]
-- modified at 8:27 Thursday 12th April, 2007
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Follow this link[^]
Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."
|
|
|
|
|
Hello all,
I have 2 exe's and on button click i want to switch from one to another.
On my button click event i have written this code
TCHAR szBuffer[ MAX_PATH ];
DWORD dwLength = GetProgramFilesDirectory( szBuffer, MAX_PATH );
CString Folder_path,index_File ;
Folder_path.Format("%s",szBuffer);
index_File = Folder_path + "\\neha\\neha.exe";
ShellExecute(NULL,"open",index_File,NULL,NULL,NULL);
exit(0);
on
exit(0);
its giving don't send error
can we use any other function instead of exit(0) for closing application.
thanks in advance
|
|
|
|
|
neha.agarwal27 wrote: can we use any other function instead of exit(0) for closing application.
Is PostQuitMessage() of any help?
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
I'm a new man,I'm a Chinese.Like .NET & C++.I just want to make friend with Everbody!
MSN:mynameiswanglin@hotmail.com
|
|
|
|
|
Max.Payne wrote: MSN:mynameiswanglin@hotmail.com
no
welcome to CP
now what's your question ?!
|
|
|
|
|
|
Hi,
I think some people in this forum like .Net & C++ so you are not alone .
Max.Payne wrote: MSN:mynameiswanglin@hotmail.com
Not good idea to write email address on the global forum.
I didnt see any question on your message do you have any question or problem?
|
|
|
|
|
Welcome to the codeproject friend!!
Best Regards,
Suman
|
|
|
|
|
Hello Max.Payne
May I ask a question?
|
|
|
|
|
Yes please!You can send MSN(mynameiswanglin@hotmail.com) to me,and send message on this Message board!
|
|
|
|
|
Thanks
I like to learn china language but I think its very difficult I have some questions of you
(1)Can I learn china of the internet or I need to buy a book or maybe it will be helpful go to a class.
(2) I hear china language has a lot of alphabet,is it right?
|
|
|
|
|
1.Chinese is a difficult language,if you want to learn it,best is join some class and read a lot of book.
2.The Chinese has a lot of alphabet is right.I don't understand some word of Chinese now.
3.and you and mail me to get more infomatin about The Chinese. and my Englist is poor,so we can learn each other!
|
|
|
|
|
So I think I have a long way to learn it(how many years?) if I can but I think I must try very hard if I want to understand it,and I dont think we can to learn together because chinese is your first language but I dont know even alphabet also I think it has a rule for write each character for example of right or left or up or down.
|
|
|
|
|
Hi all.
In an owner drawn list box, when I try to set the item height by ...
--------------------------------------------------------------------
void CListBoxEx::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
lpMeasureItemStruct->itemHeight = m_nHeight;
}
--------------------------------------------------------------------
I have defined m_nHeight as a class memner and its of an int type. I am setting its value with the help of another function...
SetItemHeight(int nVal).
When I pass the values for m_nHeight to be greater than 255, then the values got truncated...
Eg.
1. When I passed 300, the item height was set to 300-256 = 49.
2. When I passed 400, the item height was set to 400-256 = 149.
etc.
I have taken care to set the proper data types for m_nHeight, and data type of lpMeasureItemStruct->itemHeight is UINT. Then what could be the reason behind this value truncation?
Thanks
Sameer Thakur
|
|
|
|
|
from MSDN [^]:
The maximum height of a list box item is 255.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
|
|
|
|
|
And is there any way to overwrite this limitation?
|
|
|
|
|
i have to find the mozila installed or not in a system.How i find that in registry editor.Which mfc class help for this. plz help me.
|
|
|
|
|
Try CRegKey
Nobody can give you wiser advice than yourself. - Cicero
|
|
|
|
|
prathuraj wrote: i have to find the mozila installed or not in a system.How i find that
I assume you want to know whether Firefox is installed or not and I suggest the following if this is the case:
1. open the "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox " key in the registry.
2. Read the contents of the "CurrentVersion " value, they wil be used in the next step.
3. Open the key "HKEY_LOCAL_MACHINE\SOFTWARE\Mozilla\Mozilla Firefox <CurrentVersion contents from #2>\Main " and read the contents of the "PathToExe " value.
4. Verify that the exe-file exists where it's supposed to.
If everything worked and you could find the exe-file, you have verified that Firefox is properly installed.
If any key is missing, or could not be opened, then you can assume that Firefox is not properly installed.
At first, have a look with the registry editor to see how the keys and values are organized.
As for how to do deal with the registry from your code, I suggest you have a look in the "Registry" section among the articles here[^].
"It's supposed to be hard, otherwise anybody could do it!" - selfquote "High speed never compensates for wrong direction!" - unknown
|
|
|
|
|
|
We have a bug in our project, the problem is:
There is a group box and inside the group box there are 2 radio buttons, all the three controls have mnemonics. When I give the shortcut for group box the focus shifts to the first radio button (because that’s the first control with tab stop) but when I give the short cuts for the 2 radio buttons, the focus shifts from one button to the other but the radio buttons remain unchecked. That is, which ever button is checked by default remains checked even when I give the shortcut for the other radio button but the focus is shifted.
I proposed a solution to this by overriding the PreTranslateMessage() function and capturing the 2 shortcuts for the radio buttons and checking the appropriate radio buttons programmatically and un-checking the other radio button using CWnd::CheckDialogButton() function.
However I couldn’t find the cause for this bug, I checked the Group and Tab Stop properties of the controls and tried changing these properties but still the mnemonics don’t work.
I was wondering if anyone faced this problem before?!! Or if there’s a better way to fix this bug?!!
Thanks,
swathi
|
|
|
|
|
Hi
I’m creating one windows service in my own purpose
Using msxml4.dll.
The process of service is to fetch the data from exchange server through webdav SEARCH METHOD
When i use this coding in windows form normal button click event , it works fine,
When I convert into windows service, it throws the error
The coding is below
MSXML2.XMLHTTP objXMLHTTP = new MSXML2.XMLHTTP();
writemethod("After Initialize");
System.Xml.XmlDataDocument xmlDOMParams = new System.Xml.XmlDataDocument();
objXMLHTTP.open("SEARCH", strInboxURL,false,strAliasName, strPassword);
objXMLHTTP.setRequestHeader("Content-type", "text/xml");
objXMLHTTP.setRequestHeader("Depth", "1");
string strXML;
strXML = "" +
"<d:searchrequest xmlns ="\'DAV:\'">" +
"<d:sql>" +
"SELECT \"urn:schemas:httpmail:fromemail\"," +
------------------
---------etc…
objXMLHTTP.send(strXML); // Error Raised
The Error Raised in when i send the xml query
Any suggestion,please reply
We are using c#
Regards,
Arunkumar S
|
|
|
|