Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 28 May 2011
Offline Last Active Aug 29 2012 07:51 PM

Posts I've Made

In Topic: c++ byte arrays how to output

29 August 2012 - 06:19 PM

All I know about the data is that it is stored as binary data.

A MSFT told me the data would contain /device/harddiskvolume2/something/something.exe

He never specified wether it was a null terminated string or char array or anything like that.

So does anyone have any assumptions?

In the MSDN documentation it is listed as FWP_BYTE_BLOB as the data type.
The byte blob is storing an AppId from the FWPM_NET_EVENT0 header.

If that helps.

How would I even output it with cout?

for(int a = 0; a < size; ++a)
cout << data + a;


In Topic: How to explain Programming?

13 August 2012 - 04:35 PM

Its like learning a foreign language. You know what you want to say to someone but you have to learn their language first so they understand.

Except the machine is the foreigner you are trying to communicate with.

That is how I would describe it to someone. People are going to be potentially confused by a technical explanation.

In Topic: who else started out wanting to create a MMO game?

13 August 2012 - 04:29 PM

I wanted to take USGS datasets to render the world terrain to real scale and then be able to walk around in my own virtual world with just randomly generated trees, and textures that matched its region.

Then I wanted to make a war game out of it like you got a handful of spy drones and a few satellites and you had to use them to find another person playing. Then when you found them you had to hit them with cruise missiles.

Modern games are so unimaginative and I really wish I had the skill alot of game developers have. I am still years away from being able to do it. I know how to code (albeit slowly), and I know how to use DirectX, it would still take me awhile.

Nowadays I have more interest in making tools and science. Like making things to secure my computer or carry out chemical reactions. I also would like to learn more about making servers and databases. And making my own operating system even.

And things like parallel computing, hardware design, etc.

Basically just stuff that interests me in a hobby type of way.

In Topic: win32 dialog question

13 August 2012 - 04:09 PM

I am not sure that is a complete answer because the button in the dialog won't work when you use wm_create. Neither does moving it. And it does not receive messages.

Basically the program freezes.

In Topic: win32 dialog question

12 August 2012 - 06:43 PM

[source lang="cpp"]#include "windows.h"#include "resource.h"HWND wfpMainWnd = 0;HINSTANCE wfpAppInst = 0;BOOL CALLBACKMainDlgProc(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam){switch(msg){case WM_INITDIALOG: return true;case WM_COMMAND: switch(LOWORD(wParam)) { case IDOK: EndDialog(hDlg, 0); return true; } break;}return false;}LRESULT CALLBACKWndProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam){switch(msg){case WM_CREATE: DialogBox(wfpAppInst, MAKEINTRESOURCE(IDD_DIALOG), wfpMainWnd, MainDlgProc); return 0;case WM_DESTROY: PostQuitMessage(0); return 0;}return DefWindowProc(hWnd, msg, wParam, lParam);}int WINAPIWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR cmdLine, int showCmd){wfpAppInst = hInstance;WNDCLASS wc;wc.style = CS_HREDRAW | CS_VREDRAW;wc.lpfnWndProc = WndProc;wc.cbClsExtra = 0;wc.cbWndExtra = 0;wc.hInstance = wfpAppInst;wc.hIcon = ::LoadIcon(0, IDI_APPLICATION);wc.hCursor = ::LoadCursor(0, IDC_ARROW);wc.hbrBackground = (HBRUSH)::GetStockObject(WHITE_BRUSH);wc.lpszMenuName = 0;wc.lpszClassName = L"wTest";RegisterClass(&wc);wfpMainWnd = ::CreateWindow(L"wTest", L"GameDev Win32 Test", WS_OVERLAPPEDWINDOW, 0, 0, 800, 600, 0, 0, wfpAppInst, 0);ShowWindow(wfpMainWnd, showCmd);UpdateWindow(wfpMainWnd);MSG msg;ZeroMemory(&msg, sizeof(MSG));while(GetMessage(&msg, 0, 0, 0)){ TranslateMessage(&msg); DispatchMessage(&msg);}return (int)msg.wParam;}[/source]