|
Franken wrote: What is vcredist_x86.exe?
See here.
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
hm, this unfortunatly doesn't solve the problem I've installed vcredist_x86.exe on the target machine but the error still occurs.
|
|
|
|
|
Ok, could it be a (ActiveX) control that needs to be registered?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
I use TeeChart as ActiveX Control but this doesn't seem to make problems. It is the only ActiveX control which I use. When I build the setup project with the ActiveX control and without the gauge control (dll) everything works fine. The gauge control don't have any ActiveX component.
|
|
|
|
|
|
I don't know wether the problem is due to the manifest file. I have know experience with mixed-mode setup projects. I just added the exe file to the setup wizard and when I compile the setup project it recognizes the dependency to the dundaswingauge.dll which is then added to the setup project. When I exclude the dundas gauge control from the project. The application runs fine also on the target machine. The dundaswingauge.dll doesn't show up in the manifest file. Might this be the problem?
Best regards,
Frank.
|
|
|
|
|
I'm using the Win32 API on WindowsXP with Visual Studio 2005 to create an application with toolbars. I am using imagelists assigned to these toolbars to manage their state. Previously, I was just using normal image list (TB_SETIMAGELIST) and a hot image list (TB_SETHOTIMAGELIST). In that code, I could press a button, and disable it. It would show as grayed out and pressed.
Now, I have added using disabled image lists (TB_SETDISABLEDIMAGELIST) which look much better. I can disable a button and it shows it as grayed out using my disabled image. I can press a button and it looks fine with my normal image. But if I press the button, followed by disabling the button, instead of getting a pressed button with my gray image, I get a somewhat pressed button (there is a different background color but its not "sunken" in), and my normal image is showing in color.
Is it possible when using disabled image lists to have them pressed too?
Thanks,
|
|
|
|
|
|
You are using Bloodshed C++ in the version given?
Then you should be able to add libws2_32.a to the list of libraries to link.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
|
Then you should either add the lib to the makefile or enter it into the link-lib-dialog of whatever IDE you are using.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
That is exactly the part I'm confused about.
How would I go about linking the file using the command line g++?
|
|
|
|
|
You really call your g++ by command line?
Normally, you use a makefile for anything more complex than "Hello world".
The g++-command line switch for "linklib" is "-l ", i think. but better look it up in the help/man-file, by calling "g++ -? ".
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
It is "-l".
Now tell me if I'm doing it right:
g++ test.cpp -l libws2_32.a -o test
The above line causes the folowing error:
"Cannot find -llibws2_32"
The libws2_32.a file is in the same directory as the test.cpp
|
|
|
|
|
You really should read a decent tutorial about using a makefile!
E.g. http://www.cs.umd.edu/class/spring2002/cmsc214/Tutorial/makefile.html[^]
But running
g++ -c test.cpp<br />
g++ test.o -l libws2_32.a -o test.exe
should work.
Maybe -L adds a directory to seach for libraries? ..;. would be ok to add here.
Sorry, I can't help you more than google can. I am not a g++-specialist and have no g++ here.
Though I speak with the tongues of men and of angels, and have not money, I am become as a sounding brass, or a tinkling cymbal. George Orwell, "Keep the Aspidistra Flying", Opening words
|
|
|
|
|
Ok, thanks for your help m8.
Though it still says "cannnot find -llibws2_32.a".
Anyone else? This really stumped me.
|
|
|
|
|
Hi All,
My goal is to remove all references to product A from product B executable. When searching for A product name in B product executable I've found the following constructs
ЂР[ .?AV?$Composite@I@@
or in hex
80 D0 5B 00 00 00 00 00 2E 3F 41 56 3F 24 43 6F
6D 70 6F 73 69 74 65 40 49 40 40
in PE executable's .data section. Looks like all the class names from source code are mentioned there. I'm reusing source code from product A so its name heavily mentioned in these "symbols". Note, that I'm looking at release build, with no debug info.
Could someone please suggest what those constructs are and how to avoid them?
WBR O.Z.
|
|
|
|
|
why ?
Are you afraid someone might look at your product B and find that you did nothing but use product A ?
If you bought library A and use in your product B and try to hide that, people who worked on A might be a little pissed off. no ?
|
|
|
|
|
Don't worry both A and B belong to us and no pissed off people around, for now at least . This is just a matter of business decisions. Of course I can use executable compression for obfuscation purposes but I would like to find out what the problem actually is anyway.
|
|
|
|
|
Do you have RTTI enabled ? Do you need to have it enabled ?
|
|
|
|
|
I have some applications(I don't have control on those applications) that need to be update with information that i store in the Environment variables.
And in run-time i update those Environment variables and i need to "say" those applications that the Environment variables are updated.
I try to use this way
SendMessageTimeout(HWND_BROADCAST, WM_SETTINGCHANGE, 0,
(LPARAM) _T("Environment"), SMTO_ABORTIFHUNG, 10, &dwRetVal);
But with no success.
Someone can help me ?
Thanks.
|
|
|
|
|
Yanshof wrote: And in run-time i update those Environment variables...
How are you doing this?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
what do you mean ?
How do i do what ?
I just sending the message after update the variable through the registry.
|
|
|
|
|
Yanshof wrote: what do you mean ?
How do i do what ?
I was inquiring about your "i update those Environment variables" comment.
Yanshof wrote: ...update the variable through the registry.
This answers my question.
Why is SendMessageTimeout() not working for you?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
My project have a list control and have to add a lot of data to it(more than 1000 item) I use these code for add each item.
void CGraphFrom::AddDataList(CListCtrl *m_list, int row,<br />
CString col0, CString col1, CString col2, <br />
CString col3, CString col4, CString col5)<br />
{<br />
<br />
LVITEM lvi;<br />
lvi.mask = LVIF_TEXT;lvi.iItem=row;<br />
lvi.iSubItem = 0;lvi.pszText = (char*)(LPCTSTR)col0;<br />
m_list->InsertItem(&lvi);<br />
<br />
lvi.iSubItem = 1;lvi.pszText = (char*)(LPCTSTR)col1;<br />
m_list->SetItem(&lvi);<br />
<br />
lvi.iSubItem = 2;lvi.pszText = (char*)(LPCTSTR)col2;<br />
m_list->SetItem(&lvi);<br />
<br />
lvi.iSubItem = 3;lvi.pszText = (char*)(LPCTSTR)col3;<br />
m_list->SetItem(&lvi);<br />
<br />
lvi.iSubItem = 4;lvi.pszText = (char*)(LPCTSTR)col4;<br />
m_list->SetItem(&lvi);<br />
<br />
lvi.iSubItem = 5;lvi.pszText = (char*)(LPCTSTR)col5;<br />
m_list->SetItem(&lvi);<br />
<br />
}<br />
my problem is that
while program is adding the item my program look like hang up,
because the list control is updated every time when it add item.
How can I do if I want to update it only one time when it finish adding item.
|
|
|
|