[QUOTE=ZeekyHBomb;20874915]We don't rush you. We just expect that you do [I]some[/I] research yourself if the poster wasn't nice enough to explain every detail in depth.[/QUOTE]
I usually do a Google search and look at the first 5 or 6 pages. What would you recommend as research? I usually look for a while before I make a thread or ask.
Right.
[url]http://www.facepunch.com/showthread.php?p=20596622#post20596622[/url]
[url]http://www.facepunch.com/showthread.php?t=902943[/url]
[url]http://www.google.com/search?q=Lua+Visual+Basic[/url] second site
[url]http://www.facepunch.com/showthread.php?t=902061[/url]
[url]http://www.google.com/search?q=Visual+Basic+encryption[/url] fucking everywhere
I did use Google, and I read the pages and didn't understand it so I made a thread..isn't that [U]normal[/U]?
Ahahaha
[B]Edited:[/B]
Ahahahahaha.
[highlight](User was banned for this post ("Thread shitting" - birkett))[/highlight]
[QUOTE=Chad Mobile;20875428]I did use Google, and I read the pages and didn't understand it so I made a thread..isn't that [U]normal[/U]?[/QUOTE]
No, most people read the page and [U]understand[/U] it.
Chad, seriously, wait a couple of years before you start programming. To do it seriously takes a certain level of maturity and understanding which it doesn't quite seem that you have.
[QUOTE=Chad Mobile;20875428]I did use Google, and I read the pages and didn't understand it so I made a thread..isn't that [U]normal[/U]?[/QUOTE]
If you don't understand it then don' t program
I like programming because I like making stuff. If I don't understand something, I research and if I don't find an answer [B]that I can understand[/B], then I ask. If someone would give me an answer or a small walkthrough on how to do something, I would then have [B]learned [/B]how to do it. Pictures are helpful when telling someone to find something you know.
Coding isn't for people who don't understand what turns up on Google.
[editline]05:24PM[/editline]
...and don't take the time to try to find out how to understand what turns up on Google.
Seriously, Chad. Most people here will have learned to program from books, and from the internet. I have only ever had to ask two or three things to other people in the course of learning to program: just about every question I've needed to answer has had an answer contained in a book, or in a forum somewhere, easily findable by google.
I tend to only ask questions about the best way to do things, with two options I have discovered through previous research.
If you are going to be able to program properly, you should not need constant hand holding.
"What do you need help with? V. Programming VS Chad Mobile"
Sorry to interrupt into this lively argument. But does anybody know of good tutorials? (Mind you I cannot find anything on google) for JavaScript? Or books I can get at my library, or something. Anything. I'm basically stuck with my project and its annoying.
You tried W3?
(w3schools.com) and get firebug for firefox. Though I've switched for chrome, I would still use firebug for javascript debugging. It's basically impossible otherwise.
[QUOTE=benjojo;20876027]You tried W3?[/QUOTE]
Yeah (although I'm probably looking in the wrong section) It only teaches me how to script for the web. And I should have said before I'm trying to learn how to script for the unity game engine.
Learn javascript for the web first. Or use C#/Boo which are far more widely supported, and I would say more sensible languages.
[QUOTE=TheBoff;20876130](w3schools.com) and get firebug for firefox. Though I've switched for chrome, I would still use firebug for javascript debugging. It's basically impossible otherwise.[/QUOTE]
Except if you use Chrome's built-in tools. It really worked a lot better for me, I suppose it's a preference thing.
[editline]06:39PM[/editline]
[QUOTE=D0C H.;20876157]Yeah (although I'm probably looking in the wrong section) It only teaches me how to script for the web. And I should have said before I'm trying to learn how to script for the unity game engine.[/QUOTE]
They provide Javascript for those who already know Javascript, I believe. Either first learn Javascript normally, or learn C#, it'll pay off in the long run.
Chad, psuedocode, which is what you've been given multiple times. Is the EASIEST to convert to ANY language.
I understand why no one wants you in here.
[editline]06:13AM[/editline]
Another excellent non-read post by Chad.
[url]http://www.facepunch.com/showpost.php?p=20879045&postcount=7[/url]
Me quoting the stupidty.
I have the oddest feeling Chad thinks pseudocode is a programming language...
Here Chad : [url]http://en.wikipedia.org/wiki/Pseudocode[/url]
Or to save you some time :
The prefix pseudo- (from Greek ψευδής "lying, false") is used to mark something as false, fraudulent, or pretending to be something it is not.
A code is a rule for converting a piece of information (for example, a letter, word, phrase, or gesture) into another form or representation (one sign into another sign), not necessarily of the same type.
Sources :
[url]http://en.wikipedia.org/wiki/Pseudo-[/url]
[url]http://en.wikipedia.org/wiki/Code[/url]
It's plain-text that is meant to show a basic representation of code. It can be converted easily to any programming language because that's the purpose of it!
I have another newbie question.
Okay, so I'm finally getting back into programming and stuff. Great. I've been doing some real beginner stuff in the command prompt just to refamiliarize myself with C++. Also great. Now I'm trying to make a blank window. Not great. It opens and everything, which is good, but it doesn't properly close. The actual visual part of the program closes, but the program is still running, though only in the background. This means that I have to go into the task manager and end the process before recompiling.
I know this is something wrong with my code:
[code]#include <windows.h>
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX windowClass;
HWND hwnd;
MSG msg;
bool done;
windowClass.cbSize = sizeof(WNDCLASSEX);
windowClass.style = CS_HREDRAW | CS_VREDRAW;
windowClass.lpfnWndProc = WndProc;
windowClass.cbClsExtra = 0;
windowClass.cbWndExtra = 0;
windowClass.hInstance = hInstance;
windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
windowClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
windowClass.lpszMenuName = NULL;
windowClass.lpszClassName = "MyClass";
windowClass.hIconSm = LoadIcon(NULL, IDI_WINLOGO);
/* Register window class*/
if (!RegisterClassEx(&windowClass))
{
return 0;
}
/* Class registerd, so now create window*/
hwnd = CreateWindowEx(NULL, //extended style
"MyClass", //class name
"Archy's Program", //app name
WS_OVERLAPPEDWINDOW | //window style
WS_VISIBLE |
WS_SYSMENU,
100,100, //x/y coords
1024,768, //width,height
NULL, //handle to parent
NULL, //handle to menu
hInstance, //application instance
NULL); //no extra parameter's
/* Check if window creation failed*/
if (!hwnd)
return 0;
done = false; //initialize loop condition variable
/* main message loop*/
while(!done)
{
PeekMessage(&msg,hwnd,NULL,NULL,PM_REMOVE);
if (msg.message == WM_DESTROY) //check for a quit message
{
done = true; //if found, quit app
}
else
{
/* Translate and dispatch to event queue*/
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
break;
default:
break;
}
return (DefWindowProc(hwnd,message,wParam,lParam));
}
[/code]
Help?
I'm not really sure, I suck at using the Win32 API... From what I do know, your code looks fine.
I'm no expert though.
Use the [url=http://msdn.microsoft.com/en-us/library/ms644936(VS.85).aspx]GetMessage[/url] function, rather than PeekMessage.
[QUOTE=ZeekyHBomb;20882191]Use the [url=http://msdn.microsoft.com/en-us/library/ms644936(VS.85).aspx]GetMessage[/url] function, rather than PeekMessage.[/QUOTE]
I don't think that worked, the window doesn't even start up now. Here's the new code:
[code]
#include <windows.h>
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
{
WNDCLASSEX windowClass;
HWND hwnd;
MSG msg;
LPMSG lpmsg = &msg;
bool done;
windowClass.cbSize = sizeof(WNDCLASSEX);
windowClass.style = CS_HREDRAW | CS_VREDRAW;
windowClass.lpfnWndProc = WndProc;
windowClass.cbClsExtra = 0;
windowClass.cbWndExtra = 0;
windowClass.hInstance = hInstance;
windowClass.hIcon = LoadIcon(NULL, IDI_APPLICATION);
windowClass.hCursor = LoadCursor(NULL, IDC_ARROW);
windowClass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
windowClass.lpszMenuName = NULL;
windowClass.lpszClassName = "MyClass";
windowClass.hIconSm = LoadIcon(NULL, IDI_WINLOGO);
/* Register window class*/
if (!RegisterClassEx(&windowClass))
{
return 0;
}
/* Class registerd, so now create window*/
hwnd = CreateWindowEx(NULL, //extended style
"MyClass", //class name
"Archy's Program", //app name
WS_OVERLAPPEDWINDOW | //window style
WS_VISIBLE |
WS_SYSMENU,
100,100, //x/y coords
1024,768, //width,height
NULL, //handle to parent
NULL, //handle to menu
hInstance, //application instance
NULL); //no extra parameter's
/* Check if window creation failed*/
if (!hwnd)
return 0;
done = false; //initialize loop condition variable
/* main message loop*/
while(!done)
{
GetMessage(lpmsg,hwnd,NULL,NULL);
if (msg.message == WM_DESTROY)
{
done = true; //if found, quit app
}
else
{
/* Translate and dispatch to event queue*/
TranslateMessage(&msg);
DispatchMessage(&msg);
}
}
return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{
switch(message)
{
case WM_DESTROY:
PostQuitMessage(0);
return 0;
break;
default:
return 0;
}
return (DefWindowProc(hwnd,message,wParam,lParam));
}
[/code]
[QUOTE=arienh4;20877118]
They provide Javascript for those who already know Javascript, I believe. Either first learn Javascript normally, or learn C#, it'll pay off in the long run.[/QUOTE]
thanks for the input guys. It sucks because every Unity tut uses JavaScript. But I suppose if I fully learn C# then I should be able to code whatever they are in C#.
Now off to the C# tutorials! :flashfact: (Of which if you know any really good ones, Id like to see them. But being as popular as it is im sure google will have plenty)
[QUOTE=D0C H.;20882761]thanks for the input guys. It sucks because every Unity tut uses JavaScript. But I suppose if I fully learn C# then I should be able to code whatever they are in C#.
Now off to the C# tutorials! :flashfact: (Of which if you know any really good ones, Id like to see them. But being as popular as it is im sure google will have plenty)[/QUOTE]
MSDN's a pretty good reference point.
[QUOTE=Archy;20882584]I don't think that worked, the window doesn't even start up now. Here's the new code:[/QUOTE]
You need to use WM_CLOSE instead of WM_DESTROY.
[QUOTE=D0C H.;20882761]thanks for the input guys. It sucks because every Unity tut uses JavaScript. But I suppose if I fully learn C# then I should be able to code whatever they are in C#.
Now off to the C# tutorials! :flashfact: (Of which if you know any really good ones, Id like to see them. But being as popular as it is im sure google will have plenty)[/QUOTE]
[url]http://oreilly.com/catalog/9780596514822/[/url]
Use that book. Helps me with C#.
[QUOTE=Overv;20883716]You need to use WM_CLOSE instead of WM_DESTROY.[/QUOTE]
Okay, now it doesn't close at all.
Is there any reason to use an enumerator other than for added clarity to the source code? Is its only function to assign a certain value to a word?
[QUOTE=Chad Mobile;20874403]When I asked one time, someone gave me code in a different language, and I didn't know what to do with it. Then they all flipped out and started screeching.[/QUOTE]
Well, I gave you this:
[QUOTE=turb_;20462482]If you have a text file like this:
[code]
chad
lolpasswordgoeshere
[/code]
Then you can read it with (C# code, you will need to figure out how to take it to VB.NET)
[code]
string[] acc = System.IO.File.ReadAllLines("details.txt");
string user = acc[0];
string pass = acc[1];
[/code][/QUOTE]
I was only trying to help, I don't speak VB and C# is probably the next best language to help you with (they're both .NET)
It's seriously not hard to translate that to VB
[editline]05:34PM[/editline]
like, seriously seriously not hard
Sorry, you need to Log In to post a reply to this thread.