49,761 Topics
| |
how do i write windows service in turbo C++ integrated with assembly language | |
i've been working on a program that extends the limit of an integer using arrays here is my code so far [ICODE]#include<iostream> #include<string> using namespace std; void sub(); void add(); void mult(); int main() { int operation; cout<<"Please Enter a number"<<endl<<"1.Addition"<<endl<<"2.Subtraction"<<endl<<"3.Multiplication"<<endl<<endl; cin>>operation; if(operation == 1) { add(); } if(operation == … | |
Open Excel file,Error _ConnectionPtr m_adoConn; _RecordsetPtr m_adoRec; ::CoInitialize(NULL); m_adoConn.CreateInstance(__uuidof(Connection)); m_adoConn->Open("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=c:\\1.xls;Extended Properties=Excel 8.0;IMEX=1;","","",adModeUnknown); stop this function: inline HRESULT Connection15::Open ( _bstr_t ConnectionString, _bstr_t UserID, _bstr_t Password, long Options ) { HRESULT _hr = raw_Open(ConnectionString, UserID, Password, Options); if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this)); return _hr; } why error thank:) | |
Is there any way to pass a class as a function pointer. for example: [code=C++] int compare(int a, int b) { return a - b; } void sort(int *ar, int (*pf)(int, int)) { //a sorting algorithm. } class MyClass { bool condition; public: int compare(int a, int b) { if … | |
Hey guys i have a small question here. [CODE] float angle0; printf("\nEnter Original Attack Angle Value in Degree: "); //input angle scanf("%f", &angle0); while(angle0<-180 || angle0>180) { printf("\nEnter Valid Original Attack Angle Value in Degree: "); scanf("%f", &angle0); } [/CODE] i dont get it when i put in 180 it … | |
Hi.. I want to read and display bios password.I am using phonix award bios v6.00pg version ATi -42302e31 bios Date 04/20/06. operating system-- Xp i can not find actual address where bios password stored in bios chip. if password is set retrieve it and display. Plz tell me is 1d … | |
After looking at the same few lines for an hour now, I cannot figure out why the user named input file isn't opening and the user named output file isn't even being created. I used the debugger in visual studio 05 to figure out the input file isn't being opened … | |
I'm trying to write a program that prompts a user for a radius value, then uses class data to return info of a sphere based on that radius. I believe my problem lies in declaring what information goes into what class member, but I'm not entirely sure. How do I … | |
Hi, I need to find an expression evaluator for C/C++ able to support my own functions and my own data type definitions. - the expression will typically be parsed once but evaluated many times - the expression result may be of any type, not always float - the expression arguments … | |
Could someone tell me the code for a timer like 60 seconds from when the first input is? Also code for a user not being able to enter a password for 1 hour if they have inserted it incorrect? thanks guys | |
[code] const int capacity2 = 120; int rows[capacity2]; for (int i = 0; i < capacity2; i++) { if ( x == 11) { rows[i] = 1; break; } else if ( x == 13) { rows[i] = 2; break; } else if ( x == 15) { rows[i] = … | |
[code= c++] #include <iostream> using namespace std; int main() { char A,B,C,D; const char capacity = 120; char letter[capacity]; int pax = 0; int y =6; for (int i = 0; i < capacity; i++) { if ( y == 6) { char letter[] = {A}; pax++; break; } else … | |
Is there a way to copy a whole smaller array into a section of a larger array? For example, if I have an array of 4 characters, and an array of 16, can I copy the 4 characters into the first 4 of the array of 16. Then another 4 … | |
Im trying to find the average of three numbers however it only rounds it to the nearest whole number. What code can i use to get the exact number? For example at the minute it would add 2 + 3 + 2. The outcome would be 2 but i would … | |
hello, I'm working on a personal project and I was looking for some help. I am writing a program that needs to store user profiles in an external file (.user_data.dat). Problem is that anyone with half a brain can find the file and with any text editor look at the … | |
Hey guys, i was bored so made a money converter, nothing is wrong with errors etc in the code but when i run my program, the pound sign is not valid, it comes up as a u with a accent on top, please help. [CODE=C++]#include <iostream> #include <conio.h> using namespace … | |
Hey, I keep getting this error: error LNK2019: unresolved external symbol "public: struct IDirect3DDevice9 * __thiscall Engine::GetDevice(void)" when I try to compile my project. MSDN says that IDirect3DDevice9 uses d3d9.lib, but it still won't work even with that lib in additional dependencies. (using VC++ 2008) I tried linking to a … | |
Hi... I just wanted to know how quick sort works... I've got to use it in my assignment, please explain it to me... Thank you... | |
Hi all, this is my first post here and it comes out of frustration more than anything. I've been searching high and low for any insight into my problem and still can't seem to get it right. In the interest of full disclosure, this is a part of a homework … | |
Hi Im having a problem with the following piece of code: #include <iostream> using namespace std; #define something 33; void main() { if (33 == something) { cout << "equals" << endl; } } Im using Visual C++ 2008 (not Express) and I get 2 errors and 1 warning when … | |
Hi, Does anyone know if there is someway to write something harmless to \\.\PhysicalDrive0 in Windows XP? I have successfully used the ReadFile and would like to try the WriteFile, but then I'd have to find something safe to write to it. Any help would be appreciated. Best regards, MiCo | |
this should b realitivly easy to answer but i need to know how to ask a use for an address to a program (example C:\Program Files\....) then have C++ open it up. all i really need to know is the code required to open the program (the programs intended to … | |
hi, can any one help me ,i want to access pc serial port through c++ or vc++ built in classes | |
Please i am not getting flow and i am new to C++. Can any body help in this program. C++ program to convert an octal number to decimal and from decimal back to octal. [code=cplusplus] #include <iostream> #include <math.h> using namespace std; void octtodec(); void dectooct(); int main() { void … | |
How do I write a C++ function void ShiftRight (int A[], int m, int n) to shift all elements in the array A to the right m places. Array A has n elements. For instance, if ARY array has {1,2,3,4,5}, calling ShiftRight(ARY, 2, 5) will change the contents of ARY … | |
I want to convert a character to hexadecimal value. and that value should be a unsigned char value. e.g. unsigned char a[16] = {0x00,0x44,...}; this is the code segment i wrote. but its not working properly. unsigned char a1= 'D'; unsigned char a[4] ; unsigned char temp[16]; sprintf((char *)a,"0x%02X",a1); cout<<a; … | |
hi, i need help.. i have been working for about 4 hours trying to figure this out and im still lost.. the answer is probably simple but im new to c++ so please forgive me. off a site called informit, the following code is posted: [code] #define NELEMS(A) (sizeof(A) / … | |
The command line parameters will consist of a DNS command and then a number of IP-URI string pairs, the dns command is always a single letter followed by a search string. A string pairs is always ip address then uri which must be placed in the dns store. these are … | |
The command line parameters will consist of a DNS command and then a number of IP-URI string pairs. The DNS command is always a single letter followed by a search string. A string pairs is always IP address then URI which must be placed in the DNS store. The example … | |
i'm having a problem with my assignment. here is question!!!!!!!!!!!! The company ABC is developing different puzzles for their customers, and need to make the puzzles as complex as possible, but for a start it wants to test their smaller type of application. You are required to develop an application … |
The End.