Is it better to link .lib files using a line such as: #pragma comment(lib,"XXXXXX.lib") or, should they be linked via the project settings? What are the practical differences to these approaches? Thanks, -mutty
Mutty
Posts
-
Linking files - inline, or Dev studio? -
Winsock2.h and "unresolved external error"thank you - how do I link WS2_32.lib? Stupid - never mind this. I was trying to open the property pages for the SOLUTION, not the Project. No wonder there was no linker folder! -mutty -- modified at 13:42 Tuesday 14th February, 2006
-
Winsock2.h and "unresolved external error"I am trying to do this: char szHostName[MAX_PATH]; gethostname(szHostName, MAX_PATH); I have included winsock2.h yet am getting: error LNK2019: unresolved external symbol __imp__gethostname@8 Anybody know what I am missing? VS2002 thanks, -mutty
-
Best Book for Visual C++ .net?I'm looking for a good book to learn about Visual C++ .net I have a moderate amount of experience with C and C++, and have used older versions of Visual Studio, but never felt completely comfortable in the environment. Most books I've looked at concentrate too heavily on language, not enough on Visual Studio, etc for me. Any suggestions are welcome! -mutty
-
Creating my own controlyes, perhaps you are correct. How, then, do I create a new control using ver2002? I have been looking at various articles regarding creating custom buttons, but would like to find a 2002-era walk-through like the one posted. Anybody help? thanks -mutty
-
Creating my own controlHi all - I am trying to follow this Walkthrough from the msdn: http://msdn2.microsoft.com/en-us/library/ms235628.aspx[^] my problem is in the part where is says: "To create a new Windows Forms control project On the File menu, click New, and then click Project…. In the Project Types pane, select CLR in the Visual C++ node, then select Windows Forms Control Library in the Visual Studio installed templates pane. I do not have this CLR project template... what am I missing? I am running Visual Studio .net ver.2002, student edition. Thanks for any info - mutty
-
Changing IP, gateway, etc programaticallyI'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc) Any pointers on how to do this? Thanks, mutty
-
Change IP settings programaticallyI'm writing an application which will change the PCs IP settings (IP, gateway, DNS, etc) Any pointers on how to do this? Thanks, mutty
-
suggestions on Changing IP address, DNS, etcnetswitcher does much more than I need... and it also defeats the purpose of doing it myself. :)
-
suggestions on Changing IP address, DNS, etcI'm constantly moving my laptop around to different networks, and at each place I need to change the static IP settings. I'm writing a little utility to store my various configurations and set the appropriate one when needed. Right now I'm changing the IP settings from a batch file with the "netsh interface ip set..." command. Obviously, this is an ugly way to do it, but it works. This also makes it more difficult to add/edit my various listings. I'm looking for a more elegant solution... and suggestions? Thanks for any help -mutty
-
Dynamicaly moving controls at runtimeSo easy... Thanks!
-
Dynamicaly moving controls at runtimeHi - I'd like to dynamicaly move a button during runtime. I've tried changing the control's Control.Location.X and .Y but get the error: Cannot modify the return value of 'System.Windows.Forms.Control.Location' because it is not a variable. Is there a way to move a control at run time? Thanks, mutty
-
Multiple Forms questionThank you very much for the assistance. I have it working now! -mutty
-
Multiple Forms questionI understand all this except the line: this.mainForm = mainForm; Do I need to declare a form mainForm in form2?
-
Multiple Forms questionI have an application with multiple forms, and can't figure out how to make their variables and functions visible to one another. This is what I'd like to do:
namespace app1 { public class Form1 { public int state; private void btn_LoadForm_Click(...) { Form2 f = new Form2(); f.Show(); } public void SetState(int x) { state = x; } } public class Form2 { private void Form2_Load (...) { Form1.SetState(1); } }
Why doesn't this work? How do I make this work? Thanks, -mutty -
Constant declaresWhere would I put the enum to make it globally visible?
-
Constant declaresI need some help understanding basic c# layout regarding constant declarations. I have some global constants I'd like to declare for my windows.form based app such as: const int APPLICATION_STATE_PAUSED = 0; const int APPLICATION_STATE_RUNNING = 1; etc... Where is the correct place to declare these so they will be accessable by all forms and classes in my project? Thanks - mutty
-
pass Graphics object to function by using pointers?Well actually this brings up my next question... see my post about constant declarations. -mutty
-
How do I load a new form and access varables from it?Sorry, I should have been clearer what I mean. I am trying to open a new form, (Form2), from my main form (form1) On form2 are numerous controls which should change variables of form1.
-
pass Graphics object to function by using pointers?excellent, thanks! C# has some quirks I'm not used to in C++ -mutty