Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
100% Quality Score
Upvotes Received
5
Posts with Upvotes
4
Upvoting Members
3
Downvotes Received
0
Posts with Downvotes
0
Downvoting Members
0

40 Posted Topics

Member Avatar for ShadowScripter

I just had to look up the WM_ representation for the mouse scroll, so that I can activate my game camera zoom, more freely, rather than using the arrow keys (which was fun at first) So, I tried implementing the WM_MOUSEWHEEL into the message loop and created a switch statement …

Member Avatar for SHA1962
0
2K
Member Avatar for ShadowScripter

Hi, I can't really understand what the problem is with my work computer. Below I will give a full description, and a summation at the bottom. I installed an apache server, php, mysql and mozilla, the usual. Installed Dreamweaver CS5, GIMP, SQL Server Management (accessing MSSQL databases in the system), …

Member Avatar for benmar
0
260
Member Avatar for ShadowScripter

[I][B]I'm[/B][/I] trying to load compressed images to a sprite object with C++, using a [URL="http://msdn.microsoft.com/en-us/library/bb174249%28v=vs.85%29.aspx"]LPD3DXSPRITE[/URL] and the [URL="http://msdn.microsoft.com/en-us/library/bb172802%28v=vs.85%29.aspx"]D3DXCreateTextureFromFileEx()[/URL] function to load it and of course [URL="http://msdn.microsoft.com/en-us/library/bb172867%28v=vs.85%29.aspx"]D3DXGetImageInfoFromFile()[/URL] to get some info, but I don't know how to go about it. How do I decompress them before loading them to memory and …

Member Avatar for ShadowScripter
0
210
Member Avatar for dspjm

Hmm, you could design a minesweeper game using [URL="http://www.dotnetspider.com/tutorials/DotNet-Tutorials.aspx"].NET[/URL] or [URL="http://www.vbtutor.net/vb2010/index.html"]Visual Basic[/URL] easily. Instant access to some of windows graphics. First you should get an [URL="http://en.wikipedia.org/wiki/Integrated_development_environment"]IDE[/URL] to work in. [URL="http://www.microsoft.com/express/Downloads/"]Here[/URL] are some IDEs for [URL="http://en.wikipedia.org/wiki/List_of_programming_languages"]programming languages[/URL]. If you're after a more advanced game build, try starting up your own [URL="http://www.directxtutorial.com"]DirectX …

Member Avatar for JamieLynnSEO
0
247
Member Avatar for ShadowScripter

I think the title says most of it. How do I, in MS Access using VBA, get information from a workbook which I can then put in as a recordset in a table? I know that excel has an easy workaround for other excel workbooks, and I've read somewhere how …

Member Avatar for ShadowScripter
0
366
Member Avatar for ShadowScripter

Hi, I've noticed some websites don't display their content until everything's been processed, downloaded and ready for render. The result is images [B]DO NOT[/B] render after download, so there're no images popping up everywhere on the page while the page is processing its next request, but wait until it's done …

0
138
Member Avatar for ShadowScripter

hi, I'm a bit confused as to how my graphics engine actually loads a model file. Currently I'm using .x files, because that's what I was taught. But I haven't asked the most important question, how do my graphics engine actually load a model file? Using DirectX and the correspondent …

Member Avatar for PsychoLogic
0
130
Member Avatar for reemhatim

I'm not really sure what kind of hint you're looking for, but, it seems like you have a good layout of your project, as well as structure and hierarchy. Basically, all you do now is follow the same order in programming. You say a bank has several branches and each …

Member Avatar for reemhatim
0
200
Member Avatar for Jelte12345

Hm, I can imagine seekg() and seekp() or getline would get the job done. A while loop counting how many getlines you've done or just jump right in with seekg / seekp I'll give you a pointer to a good reference manual -> [URL="http://www.cplusplus.com/doc/tutorial/files/"]Input/Output usages[/URL]

Member Avatar for arkoenig
0
560
Member Avatar for Weird Nerd

If I can add something to this, [URL="http://academicearth.org/lectures/pointers-and-arrays-dynamic-memory-allocation"]here's[/URL] a lecture by David J. Malan teaching computer science at Harvard explaining pointers and dynamic memory allocation, and [URL="http://academicearth.org/lectures/pointers-to-pointers-binary-search-tree-tries-heaps"]here[/URL] he explains heaps if you want to further understand what's going on.

Member Avatar for ShadowScripter
0
149
Member Avatar for Pinchanzee

Hm, right off the bat, I'd suggest [URL="http://www.blender.org/"]Blender[/URL], it takes a while getting used to, but it will get your job done. Best of all is it's free and have many of the functions the expensive software [URL="http://usa.autodesk.com/"]3D Studio Max[/URL] has. Then there's [URL="http://www.turbosquid.com/gmax"]GMax[/URL], also free. They all have extensive …

Member Avatar for Pinchanzee
0
331
Member Avatar for Shayaan_Mustafa

I'm gonna take a wild guess and say that you're trying to write the entire class object (not a buffer) to a file. Apart from that, you should read up on [URL="http://www.cplusplus.com/reference/clibrary/cstdio/fwrite/"]C++ reference: fwrite[/URL], I think you misplaced the two parameters for size and count. If you want to write …

Member Avatar for Jason Giggs
0
864
Member Avatar for Rookie09

And, of course, it would look something like this: [CODE=cpp]#include <iostream> #include <string> #include <conio.h> using namespace std; using std::string; #define CREATE_TABLE(name) MyClass mc(name) class MyClass { public: MyClass(string name) { cout << "class name is : " << name; } private: string name; }; int main() { string name …

Member Avatar for Rookie09
0
240
Member Avatar for cgcgames

Hm, I had a hard time looking through your code, having all code in one file for me is really messy, however, the general idea behind switching between forms is to use the System::Windows::Forms::Form->Hide() and System::Windows::Forms::Form->Show() functions. When constructing, create both forms, hide the advanced calculator and when it's time …

Member Avatar for ShadowScripter
0
192
Member Avatar for ShadowScripter

Hey, I was working on a ListView that was supposed to look something like the OpenFileDialog except with some differences. Up until now I've used my own images to represent each type of extension that is added to my listview (well, only two images are used, Directory and File, to …

0
66
Member Avatar for fourty

[URL="http://www.alanphipps.com/VisualBasicdotNET-XNA.html"]VB Game Development[/URL] Awesome site. [URL="http://www.vb6.us/"]Visual Basic Stuff[/URL]

Member Avatar for The Alchemist
0
104
Member Avatar for Brian Perrigan

[QUOTE=Brian Perrigan]error C2664: 'atoi' : cannot convert parameter 1 from 'std::string' to 'const char *' No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called [/QUOTE] atoi conversion using <string> [CODE=CPP] std::string str_isbn = "123456789"; int isbn_numerical = atoi(str_isbn.c_str()); //alternatively char isbn[] = "123456789"; isbn_numerical …

Member Avatar for Brian Perrigan
0
150
Member Avatar for wwefriend

I suggest you start here [URL="http://msdn.microsoft.com/en-us/beginner/cc305129.aspx"]C++ Beginner's Guide[/URL] A great tutorial book thats downloadable (12 chapters). It will teach you the fundamentals about C++ programming. And its free! And get a good IDE to work in, like [URL="http://www.microsoft.com/express/Downloads/"]Visual C++ Express 2010/2008[/URL] or [URL="http://bloodshed-dev-c.en.softonic.com/"]Bloodshed Dev C++[/URL] both are great IDE's to …

Member Avatar for daviddoria
0
94
Member Avatar for shayankhan

I suggest you read up on such things as this: [URL="http://www.cplusplus.com/doc/tutorial/files/"]ReadFile[/URL] Just keep doing newlines in the file, but since you known the structure of what you're getting, for example, You need 4 variables from each entry, then you loop getline and count which row you're on, take that and …

Member Avatar for shayankhan
0
131
Member Avatar for technology

In addition you have: (IOSTREAM HEADER) [URL="http://www.cplusplus.com/reference/string/getline/"]getline( istream& is, string& str )[/URL] [CODE=CPP] string mystring; getline(cin, mystring); [/CODE] (STDIO HEADER) [URL="http://www.cplusplus.com/reference/clibrary/cstdio/scanf/"]scanf( const char * format, ... )[/URL] [CODE=CPP] string mystring; scanf("%s", mystring); [/CODE] (WINDOWS INPUT) [CODE=CPP] //.... LRESULT CALLBACK WindowProc(HWND hWnd, UINT Message, WPARAM wParam, LPARAM lParam) { switch(message) { …

Member Avatar for ShadowScripter
0
196
Member Avatar for Jennifer84

Hmm.. The most common way to detect the monitors size in windows is [CODE=CPP] INT32 width = GetSystemMetrics(SM_CXSCREEN); INT32 height = GetSystemMetrics(SM_CYSCREEN); MyForm->Width = 1000; MyForm->Height = 1000; if(MyForm->Width > width) MyForm->Width = width; if(MyForm->Height > Height) MyForm->Height = height; MyForm->Top = 0; MyForm->Left = 0; MyForm->StartPosition = FormStartPosition::Manual; [/CODE]

Member Avatar for ShadowScripter
0
262
Member Avatar for Jennifer84

I'm guessing you're running Managed C++ code and have a scrollbar control structure implemented in your form. [CODE=CPP] #include <windows.h> #include <iostream> #using <System.DLL> #using <System.Windows.Forms.DLL> #using <System.Drawing.DLL> using namespace System::Windows::Forms; using namespace System::Drawing; namespace MyForm { ref class MyForm : public Form { public: HScrollBar^ myhscrollbar; VScrollBar^ myvscrollbar; void …

Member Avatar for ShadowScripter
0
514
Member Avatar for SnakeJam

Hm, this seem like one of those cases where you overemphasize on the methods for <string>. What I did was remove your manual count, 'cause essentially you don't need to do the counting yourself when there is such a function to do it for you: [B]std::string::length()[/B]. Executed as such [code=cpp] …

Member Avatar for SnakeJam
0
141
Member Avatar for Kanoisa

These should output the same characters. [CODE=CPP] char *hearts = "\x03"; //♥ char *diamond = "\x04"; //♦ char *clubs = "\x05"; //♣ char *spades = "\x06"; //♠ [/CODE]

Member Avatar for Kanoisa
0
1K
Member Avatar for Jackie91

[QUOTE=Kanoisa] .... This is not the case, (ignoring the pun) the '1' tells the switch statment to look for the ascii character '1' which as the input is a character, this is what you will get, looking for integer 1 which is ascii start of headding character, i dont think …

Member Avatar for ShadowScripter
0
93
Member Avatar for Jackie91

I'd suggest consistency when programming. Instead of [code=cpp] int input; cin >> input; switch(input) { case 1: //... break; } [/code] try getline with string and converting the string to an int using atoi(const char*) [code=cpp] string input; getline(cin, input); int option = atoi(input.c_str()); switch(option) { case 1: //... break; …

Member Avatar for jonsca
0
144
Member Avatar for ShadowScripter

Hi, Yesterday when I was testing my game out, written from scratch, my DirectX debugger suddenly started spewing out this error code after a couple of runs of the program. Now, this error appears just a couple of seconds after the program goes fullscreen and starts rendering some graphics and …

0
145
Member Avatar for ShadowScripter

Hey, it seems when I try to draw textures using the Z value in the D3DXVECTOR, it doesn't affect the drawing outcome. For example, I draw a red ball, then a blue ball on top of the red ball, where the red ball has a depth value of 0.1f and …

Member Avatar for ShadowScripter
0
139
Member Avatar for ShadowScripter

Hey, I've been working on a project for a while, and had some difficulties at the beginning with the d3dx9.h and lib files, then after some threading here I got the help I needed, or so I thought. It worked well until I decided to make a new project, using …

Member Avatar for Excizted
0
929
Member Avatar for ShadowScripter

Hey, throwing a quick question in here: Is there a way to get the value at a cursor's location? For instance, the cursor is at {0,20} and I decide to do cout<<"Foo" then I move my cursor to {0,10} do something else and then come back to {0,20}, and I …

Member Avatar for technology
0
2K
Member Avatar for ShadowScripter

Hi, [? 1] How do I create an API for a game? [? 2] If this subject is too hard for a novice/intermediate programmer, where do I best find tutorials/resources about API's? [1] I asked myself this question, as well as google, yet no easy answers or explanations popped up, …

Member Avatar for triumphost
0
213
Member Avatar for ShadowScripter

Alright, I'm a novice in programming DirectX but very adept at c++ in general, and I really want to learn how DirectX works! I borrowed a book from the local library called "Windows Game Programming for Dummies". Seeing as I'm dumber than a Dummie, I really didn't understand the chapter …

Member Avatar for MattEvans
0
130
Member Avatar for ShadowScripter

Hi, I remember from when I learned PHP, how easy and fun OOP was, and how to call member functions in conjuction (after eachother) on the same line, like this: [CODE=PHP] MyClass->Foo()->Bar()->Pancakes("flour etc"); [/CODE] To be able to do that, all you needed to do was make a return holding …

Member Avatar for ShadowScripter
0
100
Member Avatar for ShadowScripter

Contrary to what the title implies, my real problem lie in returning a vector pointer, and then use it. Here's what I tried: [CODE=cpp] #include <vector> #include <string> #include <cstring> //? Needed? #define R_OK 0 #define R_ERROR 1 using namespace std; vector<string>* tester(){ vector<string> v; v.push_back("Lolzer"); vector<string> *ptr = &v; …

Member Avatar for ShadowScripter
0
94
Member Avatar for ShadowScripter

Hey, I've been trying to understand what the hell I'm doing wrong with this code. At the beginning, I include the DDRAW.H, and the code compiles with no problem, but as soon as I try using a function from that header, I get a linker error. The function I used …

Member Avatar for William Hemsworth
0
930
Member Avatar for ShadowScripter

Greets, A string array in C++ can be initialized, just like everything else. With that in mind, how do you count the number of items in the array? I mean, how many rows? Let me give you an example using Char arrays (having two dimensional since it's not like string) …

Member Avatar for ShadowScripter
0
98
Member Avatar for ShadowScripter

Mmm, I just love these error messages, I don't understand them what-so-ever and I can't interpret them. (Unsure where the post should be in the forum) I'm getting this error message at build time (Using VC++): [code=cpp]1>Linking... 1>main.obj : error LNK2019: unresolved external symbol _DirectDrawCreate@12 referenced in function "long __cdecl …

Member Avatar for Ancient Dragon
0
267
Member Avatar for ShadowScripter

Hi, this time I've borrowed a book called "Windows Game Programming for Dummies", albeit old it is still useful! However, I came across a problem writing a simple code the author made, namely the TextOut() The error it gives me at build time is as follows: [CODE]1>c:\users\shadow\documents\visual studio 2008\projects\g_app\g_app\main.cpp(75) : …

Member Avatar for ShadowScripter
0
325
Member Avatar for ShadowScripter

I stumbled upon another what I think is initializer, like int and char, named [B]HANDLE.[/B] It's also used when creating an application, I've browsed the net and found that it is a sort of pointer to an object that can change without me knowing it... eh... It wasn't really that …

Member Avatar for ShadowScripter
0
108
Member Avatar for ShadowScripter

Bah, once again I am beat by the computer logic... Anyone have an answer as to why it gives me an error: "Expected a constant expression at msg" Here's the code, [CODE] const int INFOWND_SIZE = 4; int msg_length[] = "Message"; double calc_amount = (double)msg_length/(double)INFOWND_SIZE; int msg_amount = (int)ceil(calc_amount); char …

Member Avatar for ShadowScripter
0
709

The End.