Well I remember writing one a long time ago but I forgot how I looped to wait for a connection.... any ideas on how to do it?
Type: Posts; User: bikr692002
Well I remember writing one a long time ago but I forgot how I looped to wait for a connection.... any ideas on how to do it?
I don't think the * applies to folders
Alright now what about logging the number of folders?
EDIT:I have this so far
#include <windows.h>
#include <iostream>
#include <fstream>
int main()
{
argh this is my code
Look in new post
How hard do you think it is going to be to incorporate that in to my code?
It was edited to add "and cycle through them"
EDIT:and is there any other simpler way in C++ to find directory contents?
Yeah but I don't know the name of the folder and that faq requires one to search for =\
How can I get the name of folders in a specific folder and the number of folders in that specific folder?
and then cycle through them?
Woah, that code is alot different from mine.... I need to read up on classes now I guess. How would I go about setting the "And the lucky winner is" button to do something. And where do I put that...
So your saying it should look more like this?
#include <windows.h>
#include <iostream>
#include <fstream>
HINSTANCE g_hInst;
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
What's the difference between TCHAR and char?
That's odd, I have a 475 kb exe.... but that should be normal for me since I have a GUI and 100++ lines of code, I don't know why your getting your file so large, you prob enabled debugging without...
What do you mean the CB_ADDSTRING doesn't work?
guess I'll use CBS_HASSTRINGS then
Check new post
that is what I have so far. If you guys can tell me why it messes up when it inputs the UserName...
That is using the .net framework and I don't want to be implimenting that in such a small project right now
Yeah but how do I make one?
What class do I use besides "COMBOBOX" for the second argument in CreateWindowEx()
#include <windows.h>
HINSTANCE g_hInst;
LRESULT CALLBACK WndProc(HWND,UINT,WPARAM,LPARAM);
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,
LPSTR lpCmdLine,int nCmdShow)
{...
I was answering to dwks, sorry.
Anyways yeah I have done GUI programming before *cringes*....
Wasn't that easy and it took me like a week just to get the program working.... and bugging out at...
GAH
Alright I have to write it to be a GUI >.<
Sooo
The GUI window will be
+---------------------------------------------------------------------------+
| ...
If you haven't read my post above Ken then I perfer you do so as I am asking for help with more than the srand() function.
Well I guess I should elaborate on what I am going to do so maybe you guys can help me out since I am stuck with my head up my ass on this one....
What I need to do
(This is not for homework, but...
So how would I make it choose between 1-100?
Just tried your way and it worked. Thank you, Hikaru.
man this sprintf is really fuggin confusing
no I haven't tried that yet. A person told me to look up sprintf
This is my code
String="("+(std::string)P+"*"+(std::string)L+")"+" ^ "+(std::string)T+" /4= "+(std::string)A+"\n";
a_file<<String;
P,L,T,A are doubles how can I get a_file to write...
Alright Cactus, I'll read up on more of the basics. The lack of verticle spaces though is because it makes it easier for me to read imo but I'll try it w/ spacers next time. Oh yeah good news, it...