|
Hi,
I need to know how can I link together all the dependent libraries of an EXE file in the way to only carry the EXE file betwen computers (not a special installation file but the same EXE with the libraries within).
Anybody knows how to arrange this simple problem?
Thanks in advance.
Edgar
Edgar Berengena Moreno
Software Engineer
La Salle University, URL.
Barcelona, Spain.
|
|
|
|
|
Anybody knows how to arrange this simple problem?
IMHO this is no simple problem at all, if you're referring to linked DLLs.
For MFC and the C run-time library, you can choose static linking, which produces an EXE that does not depend on the MFC and C run-time DLLs.
As for other DLLs, I guess the closest you can get to what you want (without getting into a real mess) is having a packed installation EXE like those produced by InstallShield and similar products.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi,
First of all thank you for your reply.
I've been searching information on static linking, but I couldn't find how to do it. Do you know which is the way?, that's the solution I need...
Thank you again.
Edgar
Edgar Berengena Moreno
Software Engineer
La Salle University, URL.
Barcelona, Spain.
|
|
|
|
|
MFC: Project->Settings->General tab->Microsoft Foundation Classes combobox.
C run-time library: Project->Settings->C/C++->Category:Code Generation->Use run-time library combobox.
Un saludo, suerte con el proyecto.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Gracias!
...no era tan difícil! (la próxima vez no me saltaré la pestaña de General tan a la brava).
Gracias otra vez por el esfuerzo.
Edgar
Edgar Berengena Moreno
Software Engineer
La Salle University, URL.
Barcelona, Spain.
|
|
|
|
|
My application needs that i use a ComboBox and ListBox.The ComboBox will display a drive or directory in the system and my listbox will display all the subdirectories.This comboBox and listbox get displayed in a Dialog application. There is a function called CWnd::DlgDirListComboBox .As per documentation this is supposed to load a directory.
there are 2 classes in my application
CForDialog and CForApp .
I used this line of code inside InitDialog in CForDialog class .......throws unhandled exception
this->DlgDirListComboBox(_T(""),IDC_COMBO1,IDC_LIST1,DDL_DIRECTORY|DDL_EXCLUSIVE);
can u help
|
|
|
|
|
1. How can I get a rotated standard region(such as: ellise region, roundrect region)?
--------------------------------------------------
HRGN hRgn = CreateRectRgn(0,0,220,120);
DWORD size = GetRegionData( hRgn, 1, NULL);
RGNDATA *pData = (RGNDATA*)GlobalAlloc(GMEM_FIXED|GMEM_MOVEABLE,size);
GetRegionData(hRgn, size,pData);
double a = 0.5; // 0
xform.eM11 = (float)cos(a);
xform.eM12 = (float)sin(a);
xform.eM21 = -xform.eM12;
xform.eM22 = xform.eM11;
xform.eDx = 0;
xform.eDy = 0;
HRGN hNewRgn = ExtCreateRegion(&xform,pData->rdh.nRgnSize,pData);
// failure! why ?
GlobalFree(pData);
DeleteObject(hRgn);
DeleteObject(hNewRgn);
2. when a modeless dialog is visible, I click mouse outside the dialog ,
windows send what message by the dialog?
------------------------------------------
my email is wang_yi_ming@263.net
Thank you very much!
|
|
|
|
|
1. Are you testing this on a 9x/ME machine? ExtCreateRegion only supports rotations on NT/2000/XP. Writing a routine to perform the rotations on a RGNDATA variable is not terribly difficult, however.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
here's what i got, an MFC dialog with an edit box, a display button.
what it's supposed to do:
i enter text into the edit box and click the display button, a new messagbox like window pops up displaying the text. i can't get the text to transfer, also on a side note, i have to make a menu item that when clicked displays a message if nothing if entered into the edit box. any help please, some code example would help even more. thnx in advance
|
|
|
|
|
If you have associated a CString variable to your edit control, then try calling UpdateData(TRUE) on your OnDisplayButton handler before doing anything else.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
the edit ID is IDC_EDIT1 in the the dialog:
CString editText;
GetDlgItemText(IDC_EDIT1,editText);
|
|
|
|
|
Hello all,
I am experiencing a problem with one of the dlls in my project. It's a COM dll (written in VC++, compiled under Win2000 as MinDependency) that uses winsock and wininet, and when I try to regsvr32 it under Windows 95, it gives a "LoadLibrary failed (error 485)" message. All other dlls register properly. Windows 98, NT, 2000 have no such problem.
Here's what is specified in its Object/Library modules list: "wininet.lib Ws2_32.lib"
The system with problems has IE5 installed, so I don't think it's wininet that causes problems.
So, does anyone know how to solve it in the best way?
Help is greatly appreciated.
Volodya Orlenko,
orlenko [at] hotmail [dot] com
|
|
|
|
|
ws2_32.lib links against Winsock library version 2.0, which is not shipped with W95 by default (Winsock baseline version for this OS is 1.1), so maybe this is what's causing the problem. Try installing the Windows Socket 2 Update for Windows 95.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks a lot. I'll experiment with that tonight.
Volodya Orlenko,
orlenko [at] hotmail [dot] com
|
|
|
|
|
Hello everybody!
How can I print multi-rows text with format as a CDC::DrawText() functions?
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
Use GDI+ (graphics.DrawString).
|
|
|
|
|
Why not use DT_WORDBREAK style?
From MSDN:
DT_WORDBREAK Specifies word-breaking. Lines are automatically broken between words if a word would extend past the edge of the rectangle specified by lpRect. A carriage return–linefeed sequence will also break the line.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Thank you!
But DrawText with multi-rows not allows the vertical align!
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
Nope, if you need to vertical align, you'll have to do it in two steps:
CRect vtCenterInRect(0, 0, 300, 200);
CString vcstrLabel(_T("We want to wrap this text in the rectangle"));
pDC->DrawText(vcstrLabel, vtCenterInRect, DT_CALCRECT | DT_WORDBREAK | DT_TOP);
CRect vtActualRect;
vtActualRect.left = 0;
vtActualRect.right = 300;
vtActualRect.top = (200 - vtCenterInRect.Height()) / 2;
vtActualRect.bottom = vtActualRect.top + vtCenterInRect.Height();
pDC->DrawText(vcstrLabel, vtActualRect, DT_WORDBREAK | DT_TOP);
Hope this helps.
------------------------
Derek Waters
derek@lj-oz.com
|
|
|
|
|
Well, it's fine work!
Thank you very much.
Best regards,
Eugene Pustovoyt
Sonork ID 100.10002:Yaumen
|
|
|
|
|
where can I find some articles about the "Thread Pool"?
|
|
|
|
|
The ultimate framework for thread programming is Douglas Schmidt's ACE library, which, among an impressive array of features, provides a thread pool.
Anyway, ACE can probably be an overkill if you're planning to do a simple program. Sherwood Hu's A programming model to use a thread pool could be a simpler alternative.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi guys,
I'm doing a ::PostMessage() to a window via a worker thread. The documentation for ::PostMessage() says that if the post succeeds, then the return value is nonzero. However, sometimes I get a zero result, and then I check the GetLastError() and this returns 0 as well (I'm assuming this means "no error", as the docs say nothing about this). I know the window handle I'm posting to is valid. What is going on?
Thanx
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|
|
Post some code here, then it's much easier to tell you whats wrong!
Or try ::SendMessage(..) instead
------------------------------
©0d3 ©®4©k3® - That's me!
------------------------------
|
|
|
|
|
Not much else to say but what I said in the previous post. I'm posting a custom message to a window that I know exists. Also, SendMessage() just won't do, as the message needs to be sent from a worker thread to the main gui thread.
cheers,
swinefeaster
Check out Aephid Photokeeper, the powerful digital
photo album solution at www.aephid.com.
|
|
|
|