Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~4K People Reached
Favorite Tags
Member Avatar for prahesh

class Data { string name; string ID; public: Data(){cout<<"Data"<<endl;} }; class info{ string name; string ID; public: info(){cout<<"info"<<endl;} }; Two classes defined above. Now I want to create a vector of type std::vector<Data obj1, info obj2> container; further I want to use the vector features using the vector container. How …

Member Avatar for prahesh
0
300
Member Avatar for prahesh

void cAppMath::vregisterFunc(int index, int(*fPtr)(int a, int b)) //Application to register their functions { arrFptr[index] = fPtr; } int main() { appObj.vregisterFunc(EN_ADD, &cAppMath::add); //application that is registering the callbacks. } { Getting follwoing ERROR in vregisterFunc() func call. Error 1 error C2664: 'void cAppMath::vregisterFunc(int,int (__cdecl *)(int,int))' : cannot convert argument 2 …

Member Avatar for deceptikon
0
185
Member Avatar for prahesh

text_data = {apple \n grapes \n straberry}; FILE *fp; int i; char ch; std::string DataVal; std::ifstream in("D:\\test\\file.txt", std::ios::in | std::ios::binary); if(NULL != in) { cout<<"File Open Success"<<endl; in.seekg(0, std::ios::end); DataVal.resize(in.tellg()); in.seekg(0, std::ios::beg); in.read(&DataVal[0], DataVal.size()); in.close(); } else { cout<<"File Open Failure"<<endl; return 0; } * Here I am able to …

Member Avatar for prahesh
0
443
Member Avatar for prahesh

#include<iostream> #include<string> #include<vector> #include<set> #include<map> using namespace std; struct PoiDetails { int x; std::string s; }; int main() { struct PoiDetails oBj; std::map<std::string, PoiDetails> vName; oBj.x = 1; oBj.s = "str1"; vName["Jhon"] = oBj; oBj.x = 2; oBj.s = "str2"; vName["Ben F"] = oBj; oBj.x = 3; oBj.s = "str3"; …

Member Avatar for NathanOliver
0
195
Member Avatar for prahesh

I want to sort the array items using the vector. Example: int buff[4] = {15, 6, 55, 34}; std::vector<int> myVector(buff, buff+4); now i will pass the array in to sort the buff data in ascending order. mySort(myVector.begin(),myVector.end()); How to do this ? Kindly suggest.

Member Avatar for mike_2000_17
0
228
Member Avatar for prahesh

Example: #include<iostream> using namespace std; enum e_UserName { planet1, planet2, planet3, planet4, planet5, planet6, planet7 }; enum e_ServerName1 { Venus = 11, Mars, earth }; enum e_ServerName2 { jupiter = 11, pluto, neptune, earth2 }; struct map { enum e_UserName eUserName; enum e_ServerName eServerName; }; struct map name[] = { …

Member Avatar for prahesh
0
186
Member Avatar for prahesh

Hi All, I want to register the .dll files in my setup project. I am creating the Setup project for installing it on 64 bit Windows 7 machine, And I have successfully installed on 64 bit Machine. The issue is, while running the application installed on the 64 bit machine, …

Member Avatar for prahesh
0
624
Member Avatar for prahesh

Hi All, I want to register the .dll files in my setup project. I am creating the Setup project for installing it on 64 bit Windows 7 machine, And I have successfully installed on 64 bit Machine. The issue is, while running the application installed on the 64 bit machine, …

0
59
Member Avatar for prahesh

Hi All, I was working on the project that was building very well on Visual Studio 2008 Express Edition. Later I have installed the Visual Studio 2008 professional along with Visual Studio 2008 SP1. Now I am trying to build the project, which shows the following Error. fatal error LNK1181: …

Member Avatar for Ancient Dragon
0
1K
Member Avatar for prahesh

Setup package with installer location update according to registry search I have created a Setup and Deployment project and successfully created the Setup.exe Now I want to install the setup into the location where another dependent software VISA is installed or say location on the local drive. For doing that …

0
41
Member Avatar for prahesh

Hi I am creating a Setup and Deployment project using Visual Studio 2008, professional edition. And I was able to build successfully the desired .msi and setup.exe files. Requirement: But I want to create a Setup project which searches registry entries for the pre-installed software (VISA) and install our setup …

Member Avatar for Ancient Dragon
0
189
Member Avatar for prahesh

Hi I am creating a Setup and Deployment project using Visual Studio 2008, professional edition. And I was able to build successfully the desired .msi and setup.exe files. Requirement: But I want to create a Setup project which searches registry entries for the pre-installed software (VISA) and install our setup …

0
71