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
~10K People Reached
Favorite Forums
Favorite Tags
Member Avatar for SpecialForce

Hello everyone, I am trying to take a screenshot and save it as jpg. I have found a code and save it as bmp but the file size is pretty big. After searching a lot I found this thread [url]http://www.daniweb.com/forums/thread327090.html[/url] but I can't compile the code... :( I am trying …

Member Avatar for daviddoria
0
6K
Member Avatar for SpecialForce

Here I have a small piece of code: [CODE]ofstream hello ("hello.txt"); hello << "Γειά σου!"; //hello in greek hello.close();[/CODE] And here is the output: [CODE]Output on greek windows: "Γειά σου!"[/CODE] [CODE]Output on english windows: "ÃåéÜ óïõ!"[/CODE] Can someone, please, help me find out how to fix this?

Member Avatar for danb737
0
105
Member Avatar for SpecialForce

I am trying to delete the oldest file in a directory. I found a way to do it using a batch script, but when I put the batch code inside system, it doesn't works! [CODE] string dir = "C:\\testfolder\\"; string system_s = "FOR /F \"delims=!\" %%i IN ('DIR /A-D /B …

Member Avatar for Ancient Dragon
0
126
Member Avatar for SpecialForce

Hello, I am trying to ofstream a file using the following code: [CODE]#include <curl.h> #include <stdio.h> #include <fstream.h> struct callback_data { FILE *output; }; static long file_is_comming(struct curl_fileinfo *finfo, struct callback_data *data, int remains); static long file_is_downloaded(struct callback_data *data); static size_t write_it(char *buff, size_t size, size_t nmemb, struct callback_data *data); …

Member Avatar for mike_2000_17
0
1K
Member Avatar for SpecialForce

I have the following code: [CODE] #include "stdafx.h" #include <windows.h> #include <GdiPlus.h> #pragma comment( lib, "gdiplus" ) int GetEncoderClsid(const WCHAR* format, CLSID* pClsid); void gdiscreen(); void gdiscreen() { using namespace Gdiplus; GdiplusStartupInput gdiplusStartupInput; ULONG_PTR gdiplusToken; GdiplusStartup(&gdiplusToken, &gdiplusStartupInput, NULL); { HDC scrdc, memdc; HBITMAP membit; scrdc = ::GetDC(0); int Height = …

Member Avatar for SpecialForce
0
650
Member Avatar for SpecialForce

Hello, I am trying to create a program to read text from clipboard. It works great, but when I copy a file the program crashes. I am trying to make it to ignore any files and only output text. My code so far is the following: [CODE]#include "stdafx.h" #include <iostream> …

Member Avatar for Ancient Dragon
0
149
Member Avatar for SpecialForce

Hello, I am trying to upload a file via ftp using the library curl. Of course I looked [URL="http://curl.haxx.se/libcurl/c/example.html"]here[/URL] but the exemples don't say how to do this using usarname and password. Aslo the code is in C and if I compile it in C++ I am getting: [CODE]error C2664: …

Member Avatar for SpecialForce
0
2K
Member Avatar for SpecialForce

I have the following code witch I have modified with help from Ancient Dragon: [CODE]#pragma warning(disable: 4786) #include <io.h> #include <string> #include <vector> #include <list> #include <iostream> using namespace std; // structure to hold a directory and all its filenames. struct FILELIST { string path; vector<string> theList; }; void TransverseDirectory(string …

0
68
Member Avatar for SpecialForce

Hello, I have the following code: [CODE]#pragma warning(disable: 4786) #include <io.h> #include <string> #include <vector> #include <list> #include <iostream> using namespace std; // structure to hold a directory and all its filenames. struct FILELIST { string path; vector<string> theList; }; void TransverseDirectory(string path, list<FILELIST>& theList) { struct _finddatai64_t data; string …

Member Avatar for SpecialForce
0
182
Member Avatar for gth759k

Hi, I need help with a simple problem. I'm still new to c++ but this should be fairly straightforward. I just need to generate a random number, but with only a very small range like ... 0.00001 to 0.001. Any help would be appreciated. Thanks.

Member Avatar for Zjarek
0
79