- Strength to Increase Rep
- +7
- Strength to Decrease Rep
- -1
- Upvotes Received
- 36
- Posts with Upvotes
- 33
- Upvoting Members
- 28
- Downvotes Received
- 3
- Posts with Downvotes
- 3
- Downvoting Members
- 3
How to write a C program to count the number of mouse clicks in our Pc.Can any one give me idea for that ? |
|
I newbie in JSON Programming . I have scratched to much youtube and also google about the retrieve of data into string json using C# windows form application .. I haven't found anything till now. Please give a example and step by step procedure of how to retrieve the data … |
|
Hi, i was working on corba project using java, now i want to do it on c++. but i don't know how to compile the idl file in c++. I'm using dev-c++ for c++. So what software should i have do compile the idl file? |
|
Hi, Im quite new to SerilaPort handling.Im trying to open a serial communication on a particular COM port.Im able to Open a new one by using CreateFile(L\\\\.\\Com5, GENERIC_READ | GENERIC_WRITE, 0, // exclusive access NULL, // no security OPEN_EXISTING, 0, // no overlapped I/O NULL); But I want to do … |
|
I am new to Qt and I'm trying to connect a remote database. QSqlDatabase db = QSqlDatabase::addDatabase( "QMYSQL" ); db.setHostName("IP ADRESS"); // local or IP db.setPort(3306); // Default port is 3306 db.setUserName("DB USER"); // example root db.setPassword("PASSWORD"); db.setDatabaseName("DB NAME"); if( !db.open() ) { qDebug() << db.lastError(); qFatal( "Failed to connect." … |
|
Here is my code. #include <iostream> #include <math.h> #include <winsock.h> #include <windows.h> #include<stdio.h> #include<stdlib.h> #include<string.h> using namespace std; int main() { SOCKET s; WSADATA wsadata; int error = WSAStartup(0x0202, &wsadata); //Did something happen? if (error) return false; //Did we get the right Winsock version? if (wsadata.wVersion != 0x0202) { WSACleanup(); … |
|
Hello, I try to play a video I i don't know how.. I searched and i found some tips and articles, but all of it if about Windows Media Player. It's fine, but i need to play something lika an intro an i don't wanna show all that buttons of … |
|
i am trying to vendor specifc attribute from this WMI class MSStorageDriver_FailurePredictData(HDD SMART information). Here is the used code : IEnumWbemClassObject* pEnumerator = NULL; hres = pSvc->ExecQuery( L"WQL", L"SELECT * FROM MSStorageDriver_FailurePredictData", WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY, NULL, &pEnumerator); IWbemClassObject *pclsObj = NULL; ULONG uReturn = 0; while (pEnumerator) { HRESULT hr … |
|
I am having trouble reading uint ARRAYS properties from WMI objects. I can read and process STRING properties from WMI objects. |
|
Write a program that does the following: Asks the user to enter an integer Prints the integer in Roman numerals 1.) Asks the user if they'd like to convert another integer 2.) If the user enters 'n' or 'N': end the program (return 0;) 3.) If the user enters anything … |
|
I'm creating some automation utils. Part of it is automating mouse input. I think I have my math wrong because the X coordidnate is incorrect at certain points for example is I give it x = 114 which should translate to 114 pixels from left of screen (0) it will … |
|
Hello, I have a `HWND` for a window. I have double checked that it is a 100% valid window by using `SetActiveWindow()`, `SetFocus()`, and `SetForegroundWindow()` on it, successfully bringing it to the frontmost window. However whenever I try to use `GetPixel` on it it returns -1 (0xFFFFFFFF). What am I … |
|
Hello wizards Please i need some help from you all. I need to write a c# code to select files(pdf files to be precise) from any location on my PC. Also, i need to get the filename and i will also like to manipulate the text contained in the file. … |
|
OK, I've acheived HULK SMASH levels of frsutration with this one. I simply want to parse a date in the form of ##/##/#### The code below works peicemeal, ie each part SEEMS to work, but if I cout at the bottom the day is dissapearing or spitting out erroneous crap. … |
|
Hello, I have a file which I need to read which contains some unusual characters (EG: 'â• ') and I need to be able to read it and convert those characters to numbers. As an example of what I am looking for would be code that reads a file and prints … |
|
Design a C program that will convert temperature values from degrees Celsius to degrees Fahrenheit. The user must enter a start and a finish value, together with a step value. The program must convert all temperatures beginning with the start value at the given step interval. Use the …for()… statement … |
|
Hello, im trying to write a program that will read the id3v1 tag of an mp3 file, output the current information, and then allow the user to edit the ID3 tag. I can get it to output the information but I'm having some issues getting it to edit correctly. #include … |
|
#include <stdio.h> Reverse Number In C Program int main() { int n, reverse = 0; printf("Enter a number to reverse\n"); scanf("%d",&n); while (n != 0) { reverse = reverse * 10; reverse = reverse + n%10; n = n/10; } printf("Reverse of entered number is = %d\n", reverse); return 0; … |
|
I'm coding in visual studio. i have a problem in ConfigureSerialPort function. #include <windows.h> #include <stdio.h> #include <string.h> HANDLE hPort; BOOL WriteByte(BYTE bybyte) { DWORD iBytesWritten=0; DWORD iBytesToRead = 1; if(WriteFile(hPort,(LPCVOID) &bybyte,iBytesToRead,&iBytesWritten,NULL)==0) return FALSE; else return TRUE; } BOOL WriteString(const void *instring, int length) { int index; BYTE *inbyte = … |
|
Hi,I am having a hard time trying to do insertion sort on a singly link list containing single alphabets.I have spent hours doing this but still it wont work.Any help will be apprecited. Here is my code: # include <iostream> using namespace std; class node { public: char info; node … |
|
So I was writing a program that would take a string from clipboard, do some stuff and put the new string back to clipboard. My code so far is posted below. The problem is I want my program to wait for me until I 'ctrl+C' something. I know that `GetClipboardData()` … |
|
Hi Actually i had a doubt regarding How to design a application where we can protect specific folders with the help of password I Hope i will be responded as soon as possible Thank you With Regards Syed |
|
Actually, i want connect a database is in another computer, may i know how to connect the database over LAN to retreive the database on another computer, and what step i need to do? |
|
I'm calling a c++ project from c# , the process is like this , i enter some numbers in a textbox and when i push a button it calls a c++.exe program and run it with the numbers i've inserted in texbox ,after this return the result in another textbox. … |
|
Hi guys, I am trying to work on something where I set an image in a picturebox and then use getpixel to scan the whole image and find the percentage of the colour I am interested in, in that image. The problem is that if the image is large then … |
|
Hi everyone I'm using stat() function to get the file's attributes , but I don't know how to get the permission of it . So can anyone tell me how to find the permission of the file?? Thanks in advance |
|
how do i make a makefile of a c++ that estimates easter holiday annually? |
|
Hi I need some good study material related to it. How can i eject my DVD ROM drive using C coding. similarly, how can i change fan speed, how can i shut down my PC using C coding. I need urgently. |
|
Hey I want to Load/read/write a big file (ISO) in C#. Ive tried various combinations (FileStream, BinaryStream, etc) but all of them give me a "OutOfMemory" exception. What is the best way to load a big file into C# to work with it? Ill be using the DiscUtils library if … |