Visual C++ :: Wininet Application Does Not Send To PHP File
Jan 23, 2015
This code doesn't send parameters to mysql database vis WININET post, i see it send empty fields, what exactly could be the problem:
Code:
#include <stdio.h>
#include <windows.h>
#include <string.h>
#include <Wininet.h>
#define PAGE_NAME "gate.php"
[Code] ....
View 13 Replies
ADVERTISEMENT
Apr 1, 2014
i developed 2programm that the first one is in C and the second one is in c#.and now i have to send some string text from c to c#.how can i do that in c ?
View 8 Replies
View Related
Aug 16, 2012
I want to send SMS through my C# application.
View 1 Replies
View Related
Sep 26, 2014
i want to send SMS from APP Using Iphone. i can send SMS from andriod but when i connect Iphone so COM PORT can't be detected.
View 1 Replies
View Related
Sep 10, 2014
I basically want to develop an application which print an existing file on reception of a network event (application will be running on a seven 64 bits PC).
I wonder which application type would be the most suitable (and the simplest) for that (console win32, win32 app, MFC app ...). As this application does not need user intervention (print on network event), I'm not sure that I need a MFC application or a win32 app.
View 9 Replies
View Related
Jul 1, 2013
is there api for using a progress bar with wininet
View 5 Replies
View Related
Jul 4, 2013
I am close to getting this......the progress bar for wininet client ftp
int index;
CString strText;
index = m_dir.GetCurSel();
m_dir.GetText(index,strText);
[Code] ....
View 2 Replies
View Related
Jul 19, 2013
I'm trying to create an executable with C or C++ that send a command with the function system, but it waits for a command or key.
Example :
I send this:
C:
unas /noprofile user:administrator notepad.exe
But it waits for password.
Please type the password :
So my question is how can I make to send the password or that my program detect that prompt.
View 1 Replies
View Related
Jan 26, 2013
I have struggled to send email from my MFC applications using severl methods:
1) http via my server - works but limited
2) M$ Outlook automation - works but not easily interchangeable between machines
3) Windows Sockets - available information simply too complicated
4) Purchase an ActiveX control - I hate black box solutions and am too cheap
I have looked at P. J. Naughter's class
CPJNSMTPConnection v2.99
An MFC class to encapsulate the SMTP protocol
[URL]
This approach requires the implementation of OpenSSL which turns out to be nothing short of a nightmare to install (so I never got it to run). I am looking for an example of an application that utilizes SMTP via Windows sockets api.
View 6 Replies
View Related
Feb 17, 2013
I want to send messege to click select check box. I can click button but I don't know how to select check box with VC.
View 2 Replies
View Related
Jan 10, 2013
I have found the following article to be a very excellent run through on how to use Outlook automation with C++ in Visual Studio 2010. However, I cannot find any description of how to add an attachment(s) to an email.
How to automate Outlook 2010 by using C++ in Visual Studio 2010 together with MFC
[URL] ....
View 5 Replies
View Related
Jan 2, 2014
I have a problem in a c++ project. I have created a .dll file and hooked to an .exe
I want this .dll to make a ping or to send a message like hello somewhere, and IF ping or message doesn't receive an answer that's means the user has suspended-terminated this dll from the exe then the exe will close. How can i do that?
View 11 Replies
View Related
May 14, 2014
I want to send a number to my OPENGL class from my main dlg. Im using a updated edit control.
here is my open gl code that will draw what I want
Code:
void COpenGLControl::oglDrawScene()
{char side[32];
glPolygonMode(GL_FRONT_AND_BACK, GL_LINE);
glBegin(GL_LINE_LOOP);
for(int i = 0; i < 256; i++) {
glColor3f(1.0f,0.0f,0.0f);
glVertex3f( 1.0f, 1.0f, 1.0f);
[Code]...
I want to update the glVertex3f values when I enter numbers into edit controls on my main dialog
how can I send messages from my main dialog to the opengl class that I created?
View 1 Replies
View Related
Sep 6, 2013
I am writing an MFC app in Visual Studio 2012 that will open a JPG file as binary and read all the contents to a CString.
I am able to read it to a std::Vector, but that doesn't work much as i need to pass all the binary content as a MFC CString to another function.
More Update:
Let me explain the problem a little more deeper.
I am trying to call a JavaScript (JS) function in a HTML page and then want to pass the binary date. The C++ function that calls the JS is given below.
bool CallJavaScript(const CString strFunc,CComVariant* pVarResult);
The 1st argument is the JS Function Name and 2nd is the one to pass the Binary Data. 1st argument works fine as i am able to call the JS fucntion called "LoadImage" without any problem. Problem is with 2nd argument that's supposed to take the Binary data of the JPG file.
If i try to pass a std::Vector or std::string then it will give me an error.
But it's happy if i pass CString. But then with CString there's a problem with NULL characters.
Actually my plan is to pass the binary of a JPG to a JS function and let it display the JPG in the HTML page.
Can i typecast a Vector or std::string to a CComVariant*?
View 3 Replies
View Related
Apr 7, 2015
I have an assignment where I have to alter a ppm image and send it to a function in another file to print the new altered version.
#include "transform.h"
int main (int argc, char *argv[]) {
// declarations here
FILE *inFile;
// open input file
inFile = fopen("tiger.ppm", "r")
[Code] ....
View 1 Replies
View Related
Apr 8, 2014
I have a function which send a string as argument to a txt file, like the following:
void Fprint(... ofstream& myfile, const string a, const int b)
......
myfile << "name: " << a << " age:" << b << "" << endl;
......
}
However, my IDE (msvc12.0) popup an error about the << before a, by citing "No operator matches these operands.
View 2 Replies
View Related
Feb 27, 2013
Share ur code wit my. m working on windows n using visual studio 2008..
View 1 Replies
View Related
Apr 9, 2013
I am trying to send a DIME Attachment as a HTTP POST using the libcurl. I using this to communicate with a SOAP API. All my other function work properly but I find the correct way to send a file as a DIME attachment.
View 4 Replies
View Related
Mar 2, 2015
Here is what I got so far, I am not able to send whats in the txt file to the server. Its pretty much a txt file with movie names and when the client types the name, it brings up the movie and its ranking (all from the txt file)
Server Code::
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <string.h>
#include <fcntl.h> //file control
[Code] .....
I attached the images of the client and server when I run this, along with the movie.txt file. I cannot seem to get the file to send to the client?
Attached image(s)
View 9 Replies
View Related
Mar 2, 2015
I am not able to send whats in the txt file to the server. Its pretty much a txt file with movie names and when the client types the name, it brings up the movie and its ranking (all from the txt file) .....
Server Code::
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
[code]....
I attached the images of the client and server when I run this, alongside the movie.txt file. I cannot seem to get the file to send to the client
View 1 Replies
View Related
Oct 5, 2014
I found the following code in [URL] ....., that send .TXT files perfectly to php script in my server using Wininet, but when I insert a .BMP file, this file (.BMP) is correctly created and named in server side, but it is empty! I read that is necessary implement base64 encode for work properly, so how would?
PHP Code:
#include <windows.h>
#include <wininet.h>
#include <iostream>
#define ERROR_OPEN_FILE 10
#define ERROR_MEMORY 11
#define ERROR_SIZE 12
[Code] ....
View 12 Replies
View Related
Oct 6, 2014
My user requires that I add function to an already working C server that will send to another host via http post and existing xml file. I have googled and found C# and C++ on how to do this but nothing using C. Where do I start?
View 1 Replies
View Related
Jan 18, 2015
In this one program (3 body problem), there are 6 inputs that are scanned (mass, velocity and position of the 2 bodies) and these inputs are computed to arrive at values for x, y and time for the third body. There is a working code that for of extremely small time steps, i.e over 5000 iterations, it produces values for x and y positions of the third body.
I believe this info is sent to an output file since there is a:
FILE* output=fopen("results.out", "w");
I want to play around with the code, insert different values for mass and velocity of the two bodies, but I don't know how to view the results? Im guessing I need to create a results.out file somewhere, but how do I go about doing this?
Do I need to assign memory to the results and then forward that to the output file somehow?
Here is the code : 3body.c
I have a compiler and what not, I'm just unsure how i can get these results out is all.
View 1 Replies
View Related
Jan 2, 2015
I am trying to establish a connection between client and server to send a file to the server from a client. I have been successfully able to send files to the server but i am facing a problem with the the filename whenever i try to send any string to the server and use it in naming the filename at the server side, the string is successfully concatenated but it saves the filecontents in the filename.
for example: i am sending a file hello1.txt to server and the server has to save it as abcxyz.txt as i am sending the "xyz" from the client. BUT Whenever i am doing this ,the file saves as abcxyzfilecontents.txt If i saved in the .txt file "you123" ,my file at server side would save as abcxyzyou123.txt
Here are my codes:
Know that the server code implements a multi threaded server. The functionality to be discussed is defined in myfunc
Code:
server.c:
#include <stdlib.h>
#include <stdio.h>
[Code].....
View 1 Replies
View Related
Feb 7, 2013
I have a question about to run an MFC dialog based C++ application from console: if I run my application from console, I see the application start and the console immediately back to prompt. I need that console wait the application exit before show me the prompt again. I tried on Visual Studio 6, 2005 and 2010 but the behavior is the same.
View 3 Replies
View Related
Jun 23, 2014
I want to achieve such an efect like - one view which takes all MDI area and some views which arelike non modal dialogs
Two Child frames will be correct? one for "big" view which will be always visible and second for a "smal" views
View 2 Replies
View Related