i assume u mean visual studio version blah?
not trying to be funny but in the product itself are many tutorials on the environment
make sure u understand the language ur wanting to use first
it will help
I am trying to change printer settings (orientation) on 2000 and xp for an HP printer. I am able to change the orientation using PrintDlg () but the width and heigth do not change as they should when I call GetDeviceCaps (). This works on NT, but not 2000 or XP.
Has anyone seen this before or have any suggestions?
I have a set of C++ static libraries that is released as part of my product, and used by other developers to build their applications. Someone using these libraries is gettings an error linking in debug mode (missing debugging information for referencing module) which only occurs when the separate types linker option is turned off - when it is on the program links successfully.
Does anyone know how to resolve this so that linking can still be done successfully in debug mode without having to use separate types? Do I need to distribute the .pdb files along with the static libraries or something like that?
I'm not entirely sure, but I think your problem lies in the fact that you need to produce separate static libraries built to link to the various types of run-time libraries (static and dynamic).
You need to produce a library with different warts for each of the different linker options (/MD /MDd /ML /MLd ) and Unicode options if applicable.. This makes about 8 libraries you need to compile for completeness.
It's a real pain... however you can make it so the users of the libraries are not too inconvenienced by using the #pragma comment(lib, libraryName) compiler directive.
You want C#, it adds exactly these things to the language, and more ( i.e. more for enums ). But in C++, the answer is, no. The best you can do is end each enum with an element called ItemCount, or something. It will then hold the number you want, as the list is 0 based.
I have drunk the cool-aid and found it wan and bitter. - Chris Maunder
In an effort to use a specific printer I am using OpenPrinter with the printer name. When this call is made using most of the printers I have access to it works fine. However, if the named printer happens to be an HP printer, OpenPrinter() returns 1801 (INVALID_PRINTER_NAME). The name is the correct name from the installed printers on the system.
How can I merge the string table of 2 resource file automatically. For example I have a main resource(main.rc)with default string table entries and a second resource(temp.rc)with extra string table entries. I added the #include "temp.rc" into the main.rc. but it doesn't add it. Any ideas?
In win2k you have the environment varible username that containts the name of ther user that has logged in,
In dos if you type set and enter you will find lot of other information releted to user profile and other stuff.