Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
0% Quality Score
Upvotes Received
0
Posts with Upvotes
0
Upvoting Members
0
Downvotes Received
1
Posts with Downvotes
1
Downvoting Members
1
0 Endorsements
~9K People Reached
Favorite Tags
c++ x 42
c x 15
Member Avatar for DotNetUser

I launch 2 programs within my application with PROGRAMNAME->Show. Let's call them Prog1 and Prog2. I have a dummy form that I use Application::Run to keep the software running. When 1 of the program closes, I call Application::Exit to shut down the application. This doesn't allow the other program to …

Member Avatar for pixma
0
220
Member Avatar for DotNetUser

I have to pass a pointer to a callback function. When the callback function is not a member function in my class, the argument &callback works. When I make the callback function a member function, I get a compiler error: "error c2276 '&' : illegal operation on bound member function …

Member Avatar for pseudorandom21
-1
2K
Member Avatar for DotNetUser

I'm curious why all the events code and autogenerated code when controls are added to the form are written to the form1.h instead of the form1.cpp. Is this a configuration item? This defeats the purpose of information hiding by separating the declaration from the implementation.

Member Avatar for nehamalpani
0
71
Member Avatar for DotNetUser

I want to allow the user to tell me how many rows and columns of buttons to draw. Then draw the buttons. When a button is clicked, it displays the row # and column # of that button in a msgbox. I would create a button using the following code: …

Member Avatar for vckicks
0
893
Member Avatar for DotNetUser

I'm using Visual C++.NET. I need to pass a port number to my gui. What the syntax for passing arguments to "int __stdcall WinMain()." For regular C++ it would be "int main(int argc, char* argv[])" Thanks.

Member Avatar for cpg
0
569
Member Avatar for DotNetUser

In my Form_Load, I dynamically create buttons to populate a tabcontrol with 6 tabpages. For some reason, it doesn't like it when I make the buttons invisible in Form_Load. I'm wondering if there's an event that gets triggered after Form_Load so I can make the buttons invisible there. For now …

Member Avatar for GloriousEremite
0
92
Member Avatar for DotNetUser

I need to modify the Form's Clientsize in a static function but I get a compiler error - error C2597: illegal reference to non-static member 'System::Windows::Forms::Form::ClientSize. Are there any workarounds? Thanks.

Member Avatar for DotNetUser
0
95
Member Avatar for DotNetUser

I'm coding in VC++.NET 2003. I have a tabcontrol with 6 tabpages. In Form_Load, I dynamically create buttons on each of the tabpages, but make them invisible. Inside a static function, I would make buttons visible according to the parameters. My program would get stuck in a loop when I …

0
73
Member Avatar for DotNetUser

I'm coding in VC++.NET 2003. Is there a way to create a button_click event without using the this pointer? I have a static function that creates new buttons. I want to add the click event to the new buttons. Thanks.

0
65
Member Avatar for DotNetUser

I'm coding in VC++.NET 2003. I have panels that will be populated with buttons dynamically. In my static callback function, I get an exception when I try to add the button to the panel. //Exception: Controls created on 1 thread cannnot be parented to a control on a different thread …

0
64
Member Avatar for DotNetUser

I'm using Visual Studio .NET. The gui I'm implementing will be used on a wide screen. In the design view of the IDE, the form size is limited to the screen resolution. How can I stretch it to be the size of the wide screen so I can add controls …

0
61
Member Avatar for DotNetUser

I'm coding in VC++.NET 2003. For a static array of 20 elements, the code below works fine. But, I needed a dynamic array. I decided to use an ArrayList, but came to a compiler error when it couldn't convert from bool to System::Object __gc*. Anyone know how to convert this? …

Member Avatar for Ancient Dragon
0
110
Member Avatar for DotNetUser

I'm coding in VC++.NET 2003. I have a class that needs a log file to log info and errors for debugging. The problem I have is that FileStream and StreamWriter can not be global. I get compiler error C3145 : cannot declare a global or static managed type object or …

Member Avatar for Ancient Dragon
0
126
Member Avatar for DotNetUser

I'm coding in VC++.NET. For some reason, my messagebox is displayed below my application and is therefore hidden from the user. I can't get it to be modal either. Any ideas?

Member Avatar for DotNetUser
0
95
Member Avatar for DotNetUser

I want to change the font size but my 3rd party mapping sw needs the parameter to be of type StdFont. Is this supported in VC++.NET. I couldn't find anything about this in MSDN. Do I need to add a dependency? Thanks.

Member Avatar for DotNetUser
0
70
Member Avatar for DotNetUser
Member Avatar for Ancient Dragon
0
117
Member Avatar for DotNetUser

When I create a windows form application in VC++.NET, the code below is autogenerated to launch Form1. I want 2 instance of Form1 to run concurrently. I added another `Application::Run(new Form1());`. But, it didn't do what I wanted. After Form1 closes, the 2nd instance of Form1 is launched to run. …

0
53
Member Avatar for DotNetUser

I'm coding in VC++.net (managed C++). Is there a way to create dynamic arrays and preserving the data when the dimensions are changed? I know that Visual Basic can do this. In VB: ReDim Preserve mLn(UBound(mLn) + 1)

Member Avatar for dwks
0
59
Member Avatar for DotNetUser

I want to format the number to display fixed digits, but the format code that I have seen doesn't have that option. I want to display the longitude of the cursor in DDD::MM::SS form. I want to see 7 degrees as 007::00::00. My code in VC++.NET (formatting is not included): …

0
71
Member Avatar for DotNetUser

I have a toolbar with 2 togglebuttons. I have a program written in C# and another in VC++.NET of the same code. In the C# program, the toggle button would pop when the other is pushed and vice versa. In the VC++.NET program, this doesn't happen. Both buttons could be …

0
56
Member Avatar for DotNetUser

I'm coding in VC++.NET. Does a static timer work like any other static variable? I have a class CLASS1 that has a static timer TIMER1 and a function ENABLETIMER that disables then enables the timer. From the main file, I have a callback function that calls CLASS1::ENABLETIMER(); The timer is …

0
98
Member Avatar for DotNetUser
Member Avatar for DotNetUser

Code in VC++.NET I have a string that has html tags. I want to replace <BR> with \n, but not sure if <BR> will be uppercase, lowercase, or a mixture of both. The string replace function allows only one parameter for the replaced value. Is there a better way of …

Member Avatar for DotNetUser
0
189
Member Avatar for DotNetUser

Anybody know how to create a pop up menu in VC++.NET? In VB 6.0, you would make a call to PopupMenu(menu) with menu visible property = unchecked.

Member Avatar for DotNetUser
0
420
Member Avatar for DotNetUser

In Visual Basic 6.0, all the available events for an object (ex. Button) are displayed in the Procedure box of the Code window for the developer to choose from. But in VS .NET, the events are hidden. Is there a way to expose them or find out all the available …

Member Avatar for salamkottayam
0
143
Member Avatar for DotNetUser

I'm coding in Visual C++ .NET. I have a managed class(FORM1) that displays a form. .NET framework objects can only be define within function scope. I have a main program that creates an instance of FORM1. I have some callbacks in main that need to access the functions in FORM1, …

Member Avatar for Dave Sinkula
0
51
Member Avatar for DotNetUser

I'm coding in Visual C++ .NET. I have a managed class(FORM1) that displays a form. .NET framework objects can only be define within function scope. I have a main program that creates an instance of FORM1. I have some callbacks in main that need to access the functions in FORM1, …

Member Avatar for Dave Sinkula
0
62
Member Avatar for DotNetUser

This code is written in VC++.NET. I have a windows form that display data from a socket port using callbacks. I have main.cpp that calls Application::Run(new Form1). The socket processing code is currently in the Form's file. I want to separate the Form1 from the socket processing code. Put the …

Member Avatar for perniciosus
0
115
Member Avatar for DotNetUser

I have created three timers(5sec,5sec, and 10sec) for my Windows gui. When the timer event is triggered, it displays an Timeout error to a textbox. For some reason, the timers doesn't trigger in some procedures but does in others. I don't believe any process is holding up the code to …

Member Avatar for DotNetUser
0
128
Member Avatar for DotNetUser

This is in VC++.NET. I dynamically create the number of buttons the user specifies. I add these buttons to an Arraylist. The buttons names goes from b1 ..bn where n is the max num of buttons. The user will provide me the button number and the text to be added …

Member Avatar for DotNetUser
0
138