I am an experienced programmer in Linux, but new to Windows.
I want to develop windows XP driver for a PCI based device.
Also, I want to write a device capability Demonstration application.
I am free to select Visual Studio 6.0 to Visual Studio 2008.
1. Is it a good decision to do the Demo Application development in VC++ Dot-Net, and Driver Development in Non-Dot net environment?
2.Which version of Visual studio is suitable for me, considering the future usefulness of the technical knowledge I am acquiring.
3.Please suggest some good books for Windows XP Driver Development.
Can you please tell me what is the logic behind using 'A' + 1 ;
You wrote the code but you don't understand what you wrote ??
Anyway, you are taking the first letter of the m_Dir string (which is probably a drive letter) and substracting the value of 'A'. This is because the letter 'A' has a specific ASCII code (which is not 1) but the A drive should be 1. Then you are incrementing the drive number by 1.
I would like to know if there are any ways to programmatically detect or monitor the file or folder being copied either by copy command(like on command prompt-- copy a b) or by using drag/drop(ctrl+c and ctr+v).
It would be helpful if you could give some pointers( preferably some APIs in vc++)
I want to build an application with publish/subscribe model for UDP communication for a real time simulation system. I'm new to this communication model and need to know much about the publish/subscribe model. We are using the Client/Server model for the communication. Where can I get some details about this model and what is the middleware I should be using.
GetOpenFileName() is Win32 API function which accepts a pointer to a OPENFILENAME structure. In this structure, you have to set up a member lStructSize to sizeof(OPENFILENAME) for Windows XP and above. But for Windows98 it must be OPENFILENAME_SIZE_VERSION_400. When I use an if statement to do it, compiler gives fatal error and stops :
ofn.lStructSize = sizeof(OPENFILENAME); //for Windows XPelse
ofn.lStructSize = OPENFILENAME_SIZE_VERSION_400; //for Windows 98/ME
Ofcourse I can make seperate functions for opening files in win98 etc. But what is a better way to do this.
I am trying to sort a list using the insertion sort algo, but my application crashes. I think those pointers lost track by using the remove function. Is there a better way to sort except using the sort() (list.sort() function). It does not work too well with it since I am sorting by Departure Time of the object in the list.
Here is the code i wrote:
//Insertion sort to sort runs by departure time in the Res_RunList
int numruns = Res_RunList.size(); //the size of the list
ListOfRuns::iterator Tempitr1; //create itr poniters to navigate thru the list
std::list <RDLRun*> TempList;
Tempitr1 = Res_RunList.begin(); //points to the 1st element
Tempitr2 = Res_RunList.begin();
Tempitr6 = Res_RunList.begin();
for(int low = 1; low < numruns; ++low)
++Tempitr2; //points to low position
RDLRun *TempRun = (*Tempitr2); // store the data from low position in TempRun
int u = low -1;
Tempitr3 = Tempitr2;
Tempitr4 = Tempitr3--; //ponits to u position
//compare the time windows
while(u >=0 && ( (*Tempitr4)->GetDepartureTime() > TempRun->GetDepartureTime() ) )
Tempitr5 = Tempitr4;
Res_RunList.remove((*Tempitr5++));//to prevent duplicate
}//end while loop