1067 byte By
xlonehats at 2007-11-20 11:37:55
hi guys need some help---how to read all characters from a file and put it into a character array....it also includes spaces....string p, line; cout << "Please enter file path"<<endl;; cin>> p; ifstream inFile; inFile.open(p.c_str...
484 byte By
AvDav at 2007-11-20 11:37:56
Hello.I'd like to hear your opinions about various cross-platform (GUI) frameworks. Which one is better in terms of design, easy usage, size of executable, bugfreenes etc.Currently, I tried wxWidgets, everything is fine, however it generates very huge executable (~4Mb) for a simple application....
248 byte By
aneird at 2007-11-20 11:37:57
i create a dialog that includes a COMBOBOX(IDD_COMBOBOX1),dialog's CallWindowProc is dlgproc function,dlgproc receives the WM_COMMAND event,does deal with the clicked down-arrow event in its parent window's dlgproc,how to write the code?
232 byte By
George2 at 2007-11-20 11:37:58
Hello everyone,<br/>I think printf %d works fine with signed, unsigned and negative integer values, and the same as %ld for long. Is that correct? If not, do we need to special conversion?<br/>thanks in advance,<br/>George
Hello, I have an application in VC++ 6.0 with mfc. <br/>I need print on video messages.<br/>I define a static function. In this function I need get a device context for to use TextOut. How I can do it?<br/>Thanks<br/> :wave:
1202 byte By
flynny1st at 2007-11-20 11:38:00
Hi basically i have program with a button which when clicked launches an opens another dialog. now rather than open the dialog in a new window i want to simply overwrite the existing one. and then when the user clicks back i lod the old one again. (if theres an easier way to do this than the method...
2737 byte By
flynny1st at 2007-11-20 11:38:01
hi i'm trying to use the class from the following link http://www.dev-archive.com/cpp/g-m/bitmap/article.php/c1687/#morebut am getting the following errors-------Configuration: LaunchDLL - Win32 Debug-------Compiling...CDib.cppLaunchDLL\CDib.cpp(7) : error C2258: illegal pure syntax, must be ...
428 byte By
aguess at 2007-11-20 11:38:02
hii have 02 list A and B , B is overlaped in the list A.my 02 list is like fellowing : A: CStringA name; CStringA first_name; int number; list<place> plc;B: CStringA street; int number; my question is how can i reach the varaiable steet ( for exemple) from the list...
78 byte By
danandu at 2007-11-20 11:38:03
Hi,<br/>How to create a Gradient colored title bar for any dialog window.
1901 byte By
madad2005 at 2007-11-20 11:38:07
Hi,First of all, I've got standard C experience for writing mathematical programs that read data in, manipulate it, then write it back out again. I'm now trying to move to C++ and having problems. I can't for the life me work out how to read in a line of numbers from a file and store...
194 byte By
danandu at 2007-11-20 11:38:08
Hi,<br/>How to get bit values into an array for an existing bitmap. I know that if we select binary view from resource we would be seeing the hex values. But i want bit values through code.
hello,<br/> <br/> plz, Tell me is it posible in C to write in a file without open it..how can i do it?<br/>Thanks
Hi, i have a prgram that updates a DWORD in the registry. However i want to make my program refresh the registry every time the change takes place so that it comes into effect straight away.I am DESPERATE to do this, ive done research and cnt find anything. U guys are my last hope or im giving up lo...
1159 byte By
flynny1st at 2007-11-20 11:38:13
Hi all,i have downloaded and used the files from the following link http://www.codeproject.com/bitmap/BitmapFromScreen.aspi have used the DibHelper DibConv and DibPal files in my project. What i wish to do i create a two dimensional array of 1 and 0 to represent each pixel (as the images i will be de...
330 byte By
kranti at 2007-11-20 11:38:14
Hi, I need to call CFontDialog in a module where we configure settings of our project and these font settings should reflect in another module where we send emails.I am trying to do these by storing CFontDialog settings in a file and reading that file in other module but stuck up with how to store...
2008 byte By
LPGDEV at 2007-11-20 11:38:15
I am working on Linux and I am trying to use a c++ program which I have written and compiled. It appears as followsvmc_serial.h#include <libplayercore/playercore.h>class VMCSerial{ public: VMCSerial();};vmc_serial.cc#include <vmc_serial.h>VMCSerial::VMCSerial(){ // Do stuff}vmc.h#i...
Here is code: //m_listCtrl.SetListView(LVS_LIST); LV_COLUMN lsCol; LV_ITEM lsIte; lsCol.mask = LVCF_FMT|LVCF_WIDTH|LVCTEXT|LVCSUBITEM; lsCol.fmt = LVCFMT_LEFT; lsCol.cx = 20; char* arColumns[7] = {"Date","I","II","III","IV","V","VI"}; for(int i=0; i<7; i++) { lcCol.iSubItem =...
232 byte By
jdbdjdbd at 2007-11-20 11:38:17
I have 2 Visual C++ book. However, I am looking for Standard C++ book. I want your suggestions and help on any good book on C++ for beginners. If any of these books are online that you know of, please give links too.<br/>thanks
1449 byte By
bderagon at 2007-11-20 11:38:19
Hi All,I'm using Visual Studio 2003, and MFC/C++.I want to simulate just the update/refresh portion of the maximize command, on an ie window. I've already managed to connect to the window and can send minimize and maximize commands to it, as well as move the window around the screen, even...
Hi<br/>I used RichEdit ctrl with "RICHEDIT20W" for unicode support.<br/>When FindText or FindTextW is called, its getting Failed.<br/>Please could you tell the procedure for utilizing the FindText method <br/>Regards,<br/>nag.
560 byte By
John E at 2007-11-20 11:38:21
Just over a week ago I checked out the source for a C++ project called 'Ardour' using Subversion. The Ardour project compiles and builds fine using g++ under a Linux distro called 64studio (which I gather is based on Debian Etch).Today I tried to do a svn update but I get the error 'U...
Hi guys,I read that the difference between them isa. The default fields of a class are private while in a struct it's publicb. struct cannot InheritanceI agree with the first one (a), but I did manage to implement inheritance in a class.The thing is that I read it in too many places.....so my q...
743 byte By
Ako44 at 2007-11-20 11:38:24
Hey!Can you tell me why my code is not working? I want to change the window style for my DirectX application. In fullscreen mode, it should be WS_POPUP but in windowed mode I want it to be WS_SYSMENU | WS_MINIMIZEBOX.But this is not working, the style isnt changing:windowClass.lpfnWndProc = MsgProc;...
1064 byte By
ayhoung at 2007-11-20 11:38:25
please help. here is my code. im basically combining two strings together but when i return the value, the s3 array doesn't show. the funny thing however, is that if i copy s3 string to another array, it shows what i want it to show. why??code: #include <iostream.h>#include <stdio.h>...
Why its not recommended to have a private destructor??<br/>What are the risks involved? and will I ever need it?<br/>Thank again.....
437 byte By
zspirit at 2007-11-20 11:38:28
When my application exits, I want to see if its final state is maximized or minimized or etc so I can restore it to that state when it is restarted again. I don't see any function which can tell me that (sort of the opposition function of ShowWindow())In MFC it is easy to set the application to...
627 byte By
kteegala at 2007-11-20 11:38:29
I want to get notified when the mouse stops moving for a certain amount of time (say 0.5 sec). From Msdn documentaion, it looks like wathcing for WM_MOUSEHOVER messages is the way to go. I'm using Spy++ to check WM_MOUSEHOVER messages but I can see such message only on one window (eclipse wind...
Ok so i have VC++ 6.0. So far it works for me but i ran into a problem that might require me to upgrade to a newer version of VC++ like 2005 or 2008. My problem is that when i try to compile i get this linker error.LINK : fatal error LNK1104: cannot open file "nafxcwd.lib"So a simple adjustment of t...
412 byte By
tholz at 2007-11-20 11:38:31
Hi,"CDialog::Create" has 2 constructors. One uses the dialog id, like IDD_MYDIALOG. Easy.But the other constructor expects a char-pointer to the "name of a dialog-box template resource". What's that supposed to mean? DLL? RC-File? I can't find any info on this...Any ideas?Thanks,Thomas----...
Put the code below in a source file and compile it using Visual Studio 2005 (if possible). Notice that there's first an assert that occurs and after that a heap corruption error message (if you ignore the assert). I'm not really sure why it is acting this way, the code below seems perfectl...
If i try to run this simple program on GCC it gives me a segmentation fault whereas it runs perfectly fine on Visual C++.The code is as follows...#include <stdio.h>#include <malloc.h>struct treeNode{ struct treeNode* parent; struct treeNode* left; struct treeNode* right; int data; char a...
1409 byte By
Meka at 2007-11-20 11:38:37
Hi frndz,I'm trying to capture a video using following functions..<code>CString strCaption; strCaption.LoadString(IDS_PP_VIDEO_CAPTION); m_hWndVideo = capCreateCaptureWindow( strCaption, // window name if pop-up WS_CHILD | WS_VISIBLE, // window style 0, 0, 160,...
Hi,I use libodbc.a [from unixODBC-2.2.11] and libodbc++.a [from libodbc++-0.2.3] as a static libraries in my program (C++) to connect the MySQL Server.I have created the drivers for the MySQL and created the appropriate DSN . I have tested connectivity externally using 'isql' utility. It s...
732 byte By
giaur at 2007-11-20 11:38:41
Hello,I need to add blurred shadow to polygon. I know how to paint shadow, but I have no idea how can I add blur Effetct to it.My code looks like this:Gdiplus::Graphics graphics(hdc);SolidBrush b(Color::Red);SolidBrush bShadow(Gdiplus::Color(128,0,0,0)); GraphicsPath g, g_shadow;for(int i=0;i<5;i...
462 byte By
Lindley at 2007-11-20 11:38:43
Let's say I've got class A{ virtual void sub(); void doSomething() { sub(); }};class B: public A{ void sub() { printf("Hello."); }};Is there a way to make this arrangement work? Currently, it's causing linker errors; and if I mark sub() as non-virtual in A, it tries to ex...
CString SqlCmd = _T("CREATE TABLE tblTable1 ( id INT NOT NULL AUTO_INCREMENT ,field1 VARCHAR(50), field2 VARCHAR(50),PRIMARY KEY(id))"); database.Execute(SqlCmd);Can Anyone tell me why this SQL Statement give a syntax error . I am trying to create a table in Access with first column auto incrementi...
849 byte By
utkseth at 2007-11-20 11:38:45
HiI am facing a weird problem with my code. I am loading a .bmp file with a bmp loader but it gives me weird error. To make matters worse it works absolutely fine on other machine which have the same version of the Visual Studio I am using. I have attached the BMPLoader.cpp and BMPLoader.h files if...
799 byte By
Rooting at 2007-11-20 11:38:46
hi friends..i have an array whith 22306 variable in it..chars..dinamic arraynot i'd search a name by the array..char *array;array = new char [length];...delete [] array;now there are a structure of array same this:array[1] = carray[2] = oarray[3] = darray[4] = earray[5] = garray[6] = uarray[7]...
1270 byte By
KPexEA at 2007-11-20 11:38:47
I would like to know how to change a library that I am using from using dlls to static.Here is what I am doing:I am using the ffmpeg code, it only compiles under MinGW, it generates output as libavcodec.a, and it will also generate libavcodec.lib and libavcodec.dll for use in VC programs.So I am com...
864 byte By
DeepT at 2007-11-20 11:38:48
I have a client program that I would like to say 'goodbye' to the server right before it stops. This is easy to do if the program is stopping itself, but I do not know how to capture other events.In particular, the two big ones are:1. The user logs out (goes to thier log in screen).2....
what is the simplest way to input values into a program, that needto be matched to another set of equivalent values, to be used later in the program, Is there a way of storing a table in a file and the calling data from it?say i had 1,2,3,4,5,6, as input valuesand wanted them matched to 10,11,12,13,...
I was given this assignment, and i am struggling at starting it... im using c+ language in VI with g++ as my compiler in windows xp..The Casey County Apple Festival needs your help! Thousands ofpeople are converging on the county and expecting a piece of theworld's largest apple pie. In an a...
Hi, there's probably some property value here that I'm missing or something, but I can't seem to figure it out. I'm creating a simple form with some small fields such as Name, Address, etc. Most are single-lined, but the address text box is multi-line (not sure if this matters)...
210 byte By
mase at 2007-11-20 11:38:55
I'm still new learning the WinAPI so please don't mind me. For example if I just create dialog box, but then I don't want the user to drag it or change the size of it, so can I disable all that?
1492 byte By
mph130 at 2007-11-20 11:38:56
Hi, I don't see where can I add "code tag" to my attached codes, do I need to post a certain # to be able to do it?Here is my question, I have two classes, I want to call a public function in the first calss which in turn calls the second class. I"thought" I can save the pointer of the second c...
Yes I know I should be using a rebar but I am not. So please don't advise me to use a rebar. I use the following code: CRect rect; int nIndex = m_wndToolBar.GetToolBarCtrl().CommandToIndex(ID_SYSTEMCOMBO); m_wndToolBar.SetButtonInfo(nIndex, ID_SYSTEMCOMBO, TBBS_SEPARATOR, 125); m_wndTool...
All I want to do is a simple scale when the image is drawn. I don't know how this transform matrix works, but I think it looks right. But the image never stretches beyond a square. I just want the image stretch to the width and height I tell it to. What am I doing wrong?double xscale= (doub...
Hi folks, I meet some problems while I am using the Debug of Visual Studio 2005 on XP. 1) When I clicked "Starting Debugging", it displays as follows in the output area:'STL.exe': Loaded 'C:\Programming\STL\debug\STL.exe', Binary was not built with debug information.'STL.exe...
748 byte By
sockman at 2007-11-20 11:39:03
Hi guys,This is my problem in a nutshell:When playing an audio file with Windows Media Player and the player is stopped within 21 seconds from the end of the file, my IMiniportWaveCyclic based miniport driver never receives any KSSTATE notifications. The port driver just stays in KSSTATE_RUN and kee...
#ifdef HAVE_CONFIG_H#include <config.h>#endif#include <iostream>#include <cstdlib>using namespace std;bool yes(){ string ans; while (true) { cin >> ans; if ( (ans == "Y") || (ans == "y") ) return true; if ( ans == "N" || ans == "n" ) return false; if (ans == "Q" || ans...