Hi ¿Is it posible to configure a VS2010 C++ WinApi32 project to select which c/cpp file generates some obj file, and configure which obj file are linked to generate the exe file? Basically what I need is the same features that an old nmake project with a make file do. For example, I have 3 source files myAppVer1.c, myAppVer2.c and MyAppVer3.c. I want to configure VS to create myApp.obj from myAppVer2.c, then link this obj file with some other obj files (if any) to create MyApp.exe I have done some research and VS has the NMake project feature, but its an empty project and I would have to do all the commands, setting vars and the makefile from scratch. If this is the only way, is there some wizard/tool/whatever that makes in a NMake project the directory structure/makefile/etc with the common/basic settings for an WinApi32 app? Hope I made myself clear and excuse my English for any mistake :) Regards.
blackhattrick
Posts
-
Choose which source file will be compiled, linked, etc in VS 2010 -
send mail using c# -
Green programming...I don't know if this concept is already used, but what do you do in ordet to have a friendly ecological programming? Forget about performance and that stuff. Maybe some reporting tool that don't need to use the printer? Less code to use less CPU power? Any other idea? Do you worry about this issue? As you can see, Im not really busy and overwhelmed by work right now :P Excuse my english if I made a mistake... Ivan
-
11-Year-Old Graduates From LA Community CollegeTouche
-
smarta...ss answersNo. In fact, I realice that I've made some lame question before. But I got some helpful answers. I was just wondering... :)
-
smarta...ss answersOh, sorry, I didn't read that thread you were talking about
-
smarta...ss answersEliottA wrote:
about your clueless guy asking about basic programming, do you mean the C# thread about how to create functions and subs in c#?
No, but thats a good example... no ofense ;)
-
smarta...ss answersTalking about nazis, if someone wants to ban bad words, why they dont ban hitler, mussolinni...? now, those are bad words!
-
smarta...ss answersYeah thats why I did it...
-
smarta...ss answersA kid tries to get an easy answer for his/her homework, a clueless guy asking some questions about basic programing (ups! ;P ), and I see lots of these kind of answers, specially from gold members and admins(Im not trying to make anybody mad :)) IS it not better not to answer those kind of post anyway? Im just wondering why anybody would do it? Excuse my english :) Hoping not to get banned for this... :laugh:
-
Toolstrip font comboboxHave you tried FontDialog? I dont know if its useful for u:
using System.Windows.Forms;
FontDialog fontDialog = new FontDialog();
if ( fontDialog.ShowDialog() != DialogResult.Cancel )
{
textBox.Font = fontDialog.Font;
} -
Problem with DataReceived handler in serialport:omg: This is really useful. Thanks a lot Moreno!, I'll try this... :-D
-
Problem with DataReceived handler in serialportThanks for your suggestion Moreno! Yeah, I think thats the best way to do this task, but... Im using GUI to report and show the status of each serialport (Im using 60 instances of it, I have 60 COM ports). For example, report if CD is on, CTS, if its reading, writing and so on... so I would have to make 60 threads for each serialport, plus main thread which manages all the GUI stuff, so I think I would have to use some sort of thread cross communication, and I'm not good at that topic ;P. However, I'm googling that. BTW if someone have any good resource about threads communication (sharing data between them), it would be very useful. Thanks! Ivan
-
Problem with DataReceived handler in serialportIm using a SerialPort in order to connect a client and a server through modem. I write some AT commands in the servers' modem buffer, and the client makes the handshaking correctly. The AT commands are written when the DataReceived Handler is triggered. The problem is that when handshaking finishes and communication is established, I cant use the handler to detect new data , I have to do a loop, reading the serialport input buffer constantly. Is there a way to trigger the event handler and read data instead of using a loop? Any help would be apreciated and excuse my english if I made a mistake :) Ivan
-
How to modify the foreach identifier?I have several PictureBox Controls in my Form. I want to change the Image property of one of them depending on its Tag property. This is my code:
foreach(Control ctrl in this.controls) { if(ctrl.GetType().ToString() == "System.Windows.Form.PictureBox") { System.Windows.Form.PictureBox temPic = (System.Windows.Form.PictureBox)ctrl; if(tempPic.Tag="1") { tempPic.Image = someImg; //an image object ctrl = tempPic; } } }
Doing this I get an error:Cannot assign to 'ctrl' because it is a 'foreach iteration variable'
Is there any workaround for this or any ideas in order to achive this goal? Any help would be apreciated :) Ivan -
Several event handlers, one handler function, how to know which event handler has been used??Yeah my mistake typing that... Thanks!
-
Several event handlers, one handler function, how to know which event handler has been used??:doh: Thx a lot guys :)
-
Several event handlers, one handler function, how to know which event handler has been used??I have a serial ports list. I declared it like this:
private List<SerialPort> lstSerialPorts; for (int i = 1; i<=cont; i++) { SerialPort tempPort = new SerialPort("COM" + cont.ToString(), 2400); lstSerialPorts.Add(tempPort); lstSerialPörts[i].DataReceived += SerialDataReceivedEventHandler(TEST_FUNCTION); }
My TEST_FUNCTION is empty so far:void TEST_FUNCTION(object sender, SerialDataReceivedEventArgs e) { throw new NotImplementedException(); }
As you can see, all serial ports have the same handler function. How could I check which serial port triggered the TEST_FUNCTION? It would be great something like this:void TEST_FUNCTION(object sender, SerialDataReceivedEventArgs e) { Console.WriteLine("This function was triggered by: {0}",anUnknownVariable); }
Parameter "e" does not have any useful property or function Any help would be apreciated and excuse me about my English if I made a mistake :) Ivan -
AxMsComm objet created dinamically in C#I was wondering that too :laugh: ! Its not my fault! This aplication is implemented in this way :doh:
-
AxMsComm objet created dinamically in C#Hi everyone.. I have a problem creating a AxMsComm list. This is my code:
public static List<axmscommlib.axmscomm> lstModem = new List<axmscommlib.axmscomm>(); lstModem.Add(new AxMSCommLib.AxMSComm); lstModem[0].Enable = True; lstModem[0].Tag = -1; lstModem[0].CommPort = 1; . .
While I am running my aplication I get the following exception:InvalidActiveXStateException
I searched for this in google and I found that this is because .NET doesn't allow to create new COM objects dinamically. Is this true? Does anyone know a workaround of this?:confused: Any help would be apreciated! Excuse my English if I made a mistake. Ivan.