I want some extra parameters intialized before I run my actual application which is a dialog. I want to have a smaller dialog to popup when I first run my program to ask for the two parameters.
...
Type: Posts; User: xlnk
I want some extra parameters intialized before I run my actual application which is a dialog. I want to have a smaller dialog to popup when I first run my program to ask for the two parameters.
...
How can I use CStdioFile to read the last line of a file. I thought I could use a while loop and just keep reading each line till the end, but it did not seem to work. Are there any other...
Ahh! Thanks so much!
In my MFC project I have an icon that shows up in the top corner of the program and in the about box, but in lets say explorer the icon is still the mfc icon. How can I change that icon to my current...
I want to use CString in win32. What header files should I include to use CString?
Here is my code:
BOOL CALLBACK DlgProc(HWND hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
{
HWND display = GetDlgItem(hwnd,IDL_DISPLAY);
int n = 0;
Is there any way to parse a word document?
Is there an alternative I can use?
I could use <string> but how can I convert from UINT to string and back?
Is it even possible to use CString in straight win32 API or is it MFC specific?
nm i think i got it. Though I get an error when I try to use CString:
error C2065: 'CString' : undeclared identifier
error C2146: syntax error : missing ';' before identifier 'str'
error...
How can I convert from UInt to CString and back and LPTSTR to CString and back?
Thanks!
I'm using Microsoft Visual C++ 6.0 and instead of sharing the mfc dll i would like to compile this in with whatever program im making. I remember seeing an option for it, but when i go to project...
gcc/g++
#include <iostream.h>
#include <fstream.h>
#include <ctype.h> // toupper
int first();
int main()
{
char goal[20];
int show;
int done;
char quitting;
you can use recursion:
void solve(char source, char temp, char dest, int n)
{
if (n != 0)
{
solve(source,dest,temp,n-1);
cout << "move disk " << n << " from peg "
Awesome thanks guys! It works!
im working on a a scripting language...called EASL (Easy Ass Scripting Language) just for learning.
// Main.cpp
#include "VirtualMachine.h"
using std::vector;
void main()
How do I capture keyboard presses in C/C++?
Like to exit the program when ctrl-c is pressed.
Thanks!
Thanks!
Well, i want to build a cellular automata program (Conways game of life) so I'll have a set amount of rectangles before hand.
Thanks again!
I want to create an array of rectangles. How would I got about doing this? Do I create an array of RECT? are there other ways?
What if I load a bitmap of a grid. Could I still make the individual boxes clickable and fillable?
I'm working on a cellular automata program. (Conway's Game of Life) for example.
Heres a java example: http://hensel.lifepatterns.net/
click on "Enjoy Life" to launch applet.
You can see...
Thanks, so its an error with recv...
Gives me a start, thanks again.
<client function>
create object of SOCKET, exp
determine socket descriptor, assign to exp
create object sockaddr_in, target
assign target values
connect
enter data to be sent
send data...