|
If yes please send me an URL, where can I get subscription.
Thanks in advance
|
|
|
|
|
take a look at: http://peach.ease.lsoft.com/archives/msvc.html
- Anders
|
|
|
|
|
I COULD SEND YOU A CLASS THAT YOU CAN USE FOR THAT
EMAIL ME IF YOU WANT IT
|
|
|
|
|
John
Do an article and include the code. Stuff like this is missing from this site, and I'm sure it will be warmly welcomed
|
|
|
|
|
Hi everyone,
I've got a really simple question compared to everything I've been doing this entire weekend.
Well, to begin with, I have a programming assignment to be delivered tomorrow (Monday) and after finishing all the hard work on the inner structures, I decided out of the blue to learn how to make an interface with Visual C++ 6.0 and MFC to make my program presentable.
Now I'm all set, and the program is running fine, but I'm afraid I just don't know how to statically compile my program so it doesn't depend on ANY of visual c's dll's. I've already made MFC static by changing the combo box in project/settings/general... but I'm really afraid that tomorrow when I take my program to the presentation it may not work on the target machine due to some missing dll's.
Is there anything I'm missing to statically link all the libraries??
BTW: I'll have no chance of testing if it's working on a 'clean' machine until tomorrow's presentation.
Any sort of comment will be welcome.
Thanks in advance
Fernando
|
|
|
|
|
What you want to do here is to use depends.exe , which comes with Visual Studio (You don't mention what version of VC++ you have, but I am pretty sure that it comes with VC++ Pro and above). Depends.exe is also part of the Platform SDK (http://msdn.microsoft.com/downloads/c-frame.htm?/downloads/sdks/platform/platform.asp).
If you run depends on your executable image, it will list which external dlls your executable depends on to run. You will, of course, see several core windows dlls (such as gdi32.dll , kernel32.dll , etc.) but what you want to look out for are msvc*.dll , mfc*.dll , and atl*.dll . If you see these, you have not succeeded in completely statically linking your program.
If you can't find depends.exe, go to the command line and
dumpbin /imports myprog.dll | find /i ".DLL"
This will give you a list of all dlls your program imports functions from. Look for the same things as with depends, above.
Nonetheless, this is all terribly risky, running code for the first time on an untested machine. Have a backup plan in case the program won't run. I recently went to a colloquium given by a nationally known expert on computer drug design and he had to give his presentation on a chalkboard because the projection system didn't work well when plugged into his laptop and the version of PowerPoint on the desktop machine in the lectern was incompatible with the version of PowerPoint on his laptop, so he couldn't transfer the presentation. Great presentation, but I think he could have used some of his designer nonsteroidal anti-inflammatory drugs (a category of drugs like aspirin, acetominophen, ibuprofen) by the time he was through.
He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl
|
|
|
|
|
However, this only lists DLL's which link with import libraries. This does not include such things as OCX's which may be linked at run-time instead of load-time, or even if you have the correct versions of DLL's such as the common controls.
|
|
|
|
|
hehe
welcome to the wonderful world of installation package building
it ain't worth the risk doing it the other way or you could end up looking like a real twit
mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them
|
|
|
|
|
Hi all. I'm writing a toolbar extension and I want to be able to pass a CSize into a function that then resizes all the buttons to that size. I can resize the BUTTONS, and I can gain access to the image list, but for some reason I cannot figure how to get the imagelist, stretchblt it, make the new image the list, and put it back in, so my button bitmaps resize also.
Can anyone suggest a method for doing this ? At the moment I am blting the DC I try to draw the images into onto the screen and I can verify that
a/ the bitmaps from my toolbar never make it there, and
b/ the bitmaps on my screen never change.
I'm thinking if I add my own creation function that calls the two functions ( CreateEx and LoadImage ) then I can also store the id of the bitmap internally, which makes point one easy, and means I won't end up with a bitmap that has been stretched over & over again, but it's all for nought if I can't change the image dynamically at runtime.
Thanks.
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I have a list control with one column and that uses an imagelist in a wizard dialog. The list control is used to indicate your relative poisition in the wizard process. An image from the image list is used to indicate one of three states for a given list control item.
When the user clicks the NEXT or BACK buttons, the image changes for the appropriate list control item. The following is the body of the function that is called at this point:
void MyFunction(int nIndex, int nImage)
{
LV_ITEM lvi;
lvi.iItem = nIndex;
lvi.iSubItem = 0;
lvi.mask = LVIF_IMAGE;
lvi.iImage = nImage;
m_ctrlListOfSteps.SetItem(&lvi);
m_ctrlListOfSteps.Update(nIndex);
}
When compiled in debug mode, the function works as expected *without* the line indicated by the "// <<-----" comment. In release mode, the program does not update the image displayed in the list control correctly UNLESS the line indicated is included in the code.
I would like to know if anyone knows *why* this is the case?
|
|
|
|
|
Not sure why that's happening, but I can suggest a possible fix - zero-init the LVITEM struct:
LVITEM lvi = {0};
Debug vs. release breakages with local variables are almost always the result of not initializing said variables.
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|
|
The Debug build will allocate **much** more memory on the stack and in malloc's that the Release build will. This is of course what make the Debug build a debug build. What this means to what you are seeing is that the previous data at that location on the stack (in the LVITEM struct) happens to be 0 in the Debug build and not the Release.
As it happens most of this extra memory turns out to be zeros.
On the other hand perhaps the Debug build is initializing the memory to zero!
[This is easy to test]
Of course Michael is correct in that you should always innitialize your variables.
Jules
|
|
|
|
|
Does anyone on here have any experience working with either the Windows Media Encoder SDK or the Windows Media Format SDK? If so please drop me a line, I am struggling through something and could use some assistance.
Roger Printy
Software Engineer
TeraNex
Orlando, FL
|
|
|
|
|
Can anyone tell me where to obtain a system wide hook dll ? Can I declare this dll in VB like any api functions for usage in VB ?
|
|
|
|
|
Hi Anon,
I assume you mean a Windows Message Hook?! To help at all we are going to need to know what you want to do with it.
The Windows Message Hooks are systems wide like all windows.
Jules
|
|
|
|
|
Does anyone knows a window DLL which can help to detect wm_message of an active window. I also want to know how to make use of this DLL in VB ?
|
|
|
|
|
Does anyone knows a window DLL which can help to detect wm_message of an active window. I also want to know how to make use of this DLL in VB ?
|
|
|
|
|
I'm working on a prototype application. The user MIGHT want to have an automatic FAX capability on the server.
Does anyone know of a good fax component that can be downloaded for a trial. (I don't know if the user will want it, so I don't want to spend too much)
I have seen the "print driver" FAX interfaces, but they require that the number be entered at run time. I want to be able to set the number from a database and then call a "send" method.
Thanks
|
|
|
|
|
How can change the string displayed in a message box at run time?
or how can close the MessageBox automatically after a period ,without clicking on OK...
|
|
|
|
|
Hi Tarek!
One suggestion!
Why don't you produce your own dialog derived class instead of using AfxMessageBox(...) or MessageBox(...) stuff, and add a timer event to it so you could even not have any buttons at all on them!
You know that the default windows message boxes have atleast one OK button (IDOK, IDCANCELL, IDYES, etc...).
One further enhancement is to have your own AVI files played on the dialog using the animate control! Same as the Adaptec CD Recoders doing already! Nice UI!
Have fun and Good Luck!
Masoud
|
|
|
|
|
Any one interested in this let me know. It has been sent to Tarek alraedy.
Briefly, its a dialog derived class that has a WM_TIMER, pops up by call to DoModal() and then closes itself once the timer value is reached in the WM_TIMER handler.
Seeya!
Masoud
|
|
|
|
|
I have an ANSI C++ console application. I'm prompting the user for a password which I'm retrieving using the cin object. The problem is, I'd like for the password to not be shown while it's typed. If possible, I'd prefer to show asterisks like it's done on Windows, but I'd be happy with just showing nothing.
How can I do that?
Thanks!
Alvaro
|
|
|
|
|
Note: there's no mouse in the computer.
In my industrial app. (to control a machine) there is a time counter that shows the elapsed time while the machine works.
If I move any dialog the time counter gets stopped.
Since the PC has no mouse, I would like to know how eliminate the caption bar menu for moving the dialog.
And also why moving the dialogs make my timer stops, and if I can avoid that stopping.
thank you in advance.
|
|
|
|
|
To remove the Move item from the system menu:
HMENU hmenu = GetSystemMenu ( hYourWindow, FALSE );
RemoveMenu ( hmenu, SC_MOVE, MF_BYCOMMAND );
--Mike--
http://home.inreach.com/mdunn/
"That probably would've sounded more commanding if I wasn't wearing my yummy sushi pajamas."
--Buffy
|
|
|
|
|
If I don't mind that the value obtained would be the last introduced, can I access a variable that it's in a continuated change (X and Y coordinates in a machine) in order to show them?
I would like to know the fastest way, I'm doing a 2D simulation and I don't know if it would be correct to use pointers to the values and refreshing the draw area at some kind of time event without using critical sections or any other kind of thread sincronisation procedure.
Thank you very much, and please excuse my english, it's not my best quality.
|
|
|
|