User Profile

Collapse

Profile Sidebar

Collapse
gvr123
gvr123
Last Activity: Mar 11 '08, 09:06 AM
Joined: Apr 3 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • gvr123
    started a topic Visual Studio 2002 MSI
    in C

    Visual Studio 2002 MSI

    Hi

    Not a C++ question, but perhaps someone can help...

    I've created an installer (msi) using the visual studio 2002 setup project and all works fine. The question I have is:

    Is there a way of saving the chosen installation path to the registry such that I can find the program's path at the next stage of the installation?

    Presumable the MSI saves the install path to the registry anyway so...
    See more | Go to post

  • gvr123
    started a topic Visual Studio 2002 Add-in - Build Done Event
    in C

    Visual Studio 2002 Add-in - Build Done Event

    Hi

    I was wondering if anyone knows of a way to get the number of build errors and warnings once studio has posted an event and my add-in has caught it.

    The class implementing the sink is:

    [code=c]
    class BuildEventsSink : public IDispEventImpl< 1, BuildEventsSink , &__uuidof(EnvDT E::_dispBuildEv ents), &EnvDTE::LIBID_ EnvDTE, 7, 0>
    {
    public:
    BEGIN_SINK_MAP( BuildEventsSink )...
    See more | Go to post

  • In case this is of any use to anyone, its a matter of simply including a Version resource to the project. i.e. Add -> add resource -> version

    So Simple...
    See more | Go to post

    Leave a comment:


  • gvr123
    started a topic Embedding metadata into executables at compile-time
    in C

    Embedding metadata into executables at compile-time

    Hi All

    Not strictly a C++ question, but is there a way of embedding metadata such as Version, company, comments into a dll/exe at compile-time using Visual Studio. Its obviously possible as most commercial software has the data embedded which windows displays in the file's properties under the Version tab.

    Windows XP
    Visual Studio .NET (2002)
    C++ projects/solutions

    The closest I've found...
    See more | Go to post

  • gvr123
    replied to Subscript operator overloading
    in C
    Hi

    Here's a more compete example of what I'm trying to do:

    Effectively I'm trying to implement some bounds checking on the array. I wanted to leave the pointer to the array of Struct2 public (for various reasons) but still wanted to provide some additional safety. (The pointer is const in the actual implementation)

    Code:
    struct myStruct2
    {
    	myStruct2() { memset((void*)this, 0, sizeof(myStruct2));
    ...
    See more | Go to post

    Leave a comment:


  • gvr123
    started a topic Subscript operator overloading
    in C

    Subscript operator overloading

    Hi all

    This seems to me a peculiar problem, but confounding nonetheless...

    The problem seems to be that an overloaded subscript operator isn't being called unless it is called explicitly

    Code:
    struct myStruct
    {
    	myStruct& operator[] (int index)
    	{	
    		return *(this + index);
    	}
    
    	bool val1;
    	int val2;
    	float val3;
    	double val4;
    ...
    See more | Go to post
No activity results to display
Show More
Working...