Hi, I'm having problems using Property Sheets in VS 2005. I go to the Property Manager Pane, add a new property sheet to project A. I then go to Project B and add the same property sheet. When I change a setting in the property sheet, none of the settings in the project that inherits the property sheet changes. I am changing the Build Events> Post-Build Event Property. What am I doing wrong? Thanks Hua-Ying
hyling
Posts
-
VS 2005 Property Sheets -
using a regular expression replace string in VS 2003Oh I see, that's really cool! Thanks Hua-Ying
-
using a regular expression replace string in VS 2003Hi, According to the documentation, in the "find & replace" dialog I should be able to use a regular expression as a replacement string if the "Use:" checkbox is enabled and "Regular Expressions" is selected. I'm trying to do the following: replace the first string with the second string: mName kName mValue kValue mDescription kDescription I'm using the following regular expressions in the find and replace fields: find what: "^m.+" replace with: "^k.+" Did I miss something? Thanks Hua-Ying -- modified at 15:20 Thursday 29th September, 2005
-
#define syntax for create a class instanceThanks that really does work! I've always though that argument in a #define were separated by spaces so that it would see 3 arguments there. I guess I was wrong!
-
#define syntax for create a class instanceThe syntax error only occurs when I try to use the macro. The errors are: error C2059: syntax error : ')' error C2146: syntax error : missing ')' before identifier 'tempLogger' error C3861: 'tempLogger': identifier not found, even with argument-dependent lookup Hua-Ying
-
#define syntax for create a class instanceerror C2059: syntax error : ')' error C2146: syntax error : missing ')' before identifier 'tempLogger' error C3861: 'tempLogger': identifier not found, even with argument-dependent lookup
-
#define syntax for create a class instanceHi, Is it possible to create a macro that would create an instance of a class? I'm trying this but the compiler won't accept it: #define Logger() (MyLogger tempLogger(__FUNCTION__, __FILE__, __LINE__)) Thanks Hua-Ying
-
Constructor doesn't get called?Hi, I'm using the VS .net 2003 compiler. For some reason when create an instance of a class with:
ClassName instance();
the default constructor doesn't get called. If the instance was created with:ClassName instance;
It does call the default constructor; The code is pretty simple:ClassName::(void) { Init(); }
PS is there anyway to keep the forumn from interpretting my code as a smiley? :wtf: Thanks Hua-Ying
-
Debugging Header includesBoth suggestions were very helpful! Thanks Hua-Ying :)
-
Debugging Header includesHi, I'm trying to prevent certain Microsoft Platform SDK headers from being included into my project. Is there a view that shows the list of files as the compiler is compiling them, along with the header files that get included in the compile process? The output view that the compiler show is not detailed enough, it doesn't show which file actually #include a file. Thanks Hua-Ying
-
Switch between Unicode and ANSII found it!! My project was generated by another program and it set the Preprocessor define UNICODE in the project. So it was in the Project Properites setting under C/C++ > Preprocessor > Preprocessor Definitions. This is the reason it didn't show up when I searched the code for #define UNICODE. Thanks for the help!! Hua-ying
-
Switch between Unicode and ANSIYes I searched for both UNICODE and _UNICODE.
-
Switch between Unicode and ANSIHi, I've got a project where for some reason unicode support is turned on in the code, I've come to this conclusion because it is using the "W" versions of certain functions. I've done a search for #define UNICODE but didn't find in the code. I don't see an option for this in the Visual Studio Preferences either. Is there another way to turn it off? Thanks Hua-Ying
-
Proper way to install drivers in the windows/system32/drivers directoryHi, I need to install my driver in the /windows/system32/drivers directory if it doesn't already exist. The user would prefer not to have to run an installer just to have one driver copied. The driver could live in my application directory but I want to share the driver with other applications What is the correct way to do that is compatible with win 2000, win xp, win xp server, and other supported windows versions? I found the function GetSystemWindowsDirectory. Should I just append /drivers/ to the path returned to this function and copy my driver to that path? Thanks! Hua-Ying
-
supressing a unused variable warningThanks! UNREFERENCED_PARAMETER(z); worked for me. Hua-Ying
-
supressing a unused variable warningHi, How would I supress a warning for a certain variable which I know is unused? On other compilers I can use something like #pragma unused (variableName). Thanks Hua-Ying
-
check if a file existsThanks, I'll take a look at that! Hua-Ying
-
check if a file existsThanks, love your signature! :laugh: Hua-Ying
-
check if a file existsWhat function should I use to check if a file exists? I came across it when I didn't need it, now that I need it I can't find it. :( Gotta love how that works. :-D Thanks! Hua-Ying
-
Static LinkingInteresting, I'll check. Thanks Hua-Ying