Search Results - CodeGuru Forums
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: calc0000

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    1,314

    Re: Inline Assembly

    Ahhh, that helps A LOT. And your short dissertation on how to figure it out is much appreciated. I couldn't find any other documentation on how to do it, either on Google or MSDN.

    On a side...
  2. Replies
    4
    Views
    1,314

    Inline Assembly

    Hi guys. I'm trying to call MessageBoxA from inline assembly using the following code:



    int main(int argc,char* argv[]){
    HWND hwnd=0;
    char* text="text";
    char* cap="caption";
    UINT...
  3. Replies
    14
    Views
    1,899

    Re: Drawing Text In Window VC++

    Yup.
  4. Replies
    14
    Views
    1,899

    Re: Drawing Text In Window VC++

    Well, I've tried building a solution that included a Resource file, and Express complained and would not let me build until I excluded it from the build.
  5. Re: Exception of type 'System.AccessViolationException'

    If I had to guess, it's the fact that you don't initialize argv in display(); glutInit is getting a junk pointer and it doesn't like that.

    I understand that glutInit should be run from main() (it...
  6. Replies
    14
    Views
    1,899

    Re: Drawing Text In Window VC++

    The Express version does not include a resource compiler, so you can't build programs with the .rc (you have to exclude those from the build.)
  7. Replies
    1
    Views
    930

    Re: USb Keyboard events?

    Take a look at PostMessage (http://msdn.microsoft.com/en-us/library/ms644944%28VS.85%29.aspx).
  8. Replies
    4
    Views
    1,853

    Re: Link python26.lib to my app

    Have you put python26.dll into the same directory as your .exe file?
  9. Thread: AESManaged

    by calc0000
    Replies
    1
    Views
    4,097

    AESManaged

    I'm trying to port a program written in C# to Managed C++, and it's going quite well, except for one problem: Managed C++ doesn't seem to have System::Security::Cryptography::AESManaged. For some...
  10. Replies
    15
    Views
    1,358

    Re: Class char array, please help.

    You can get a c-style string out of a std::string with string.c_str(), i.e., button[0].test.c_str(). This returns a const char array (if I remember correctly).
  11. Thread: While Loop

    by calc0000
    Replies
    2
    Views
    405

    While Loop

    So here's the deal: I'm writing a program that remaps keys (like the z key) into mouse clicks, as you can see from the code below:



    int main(int argc, char* argv[])
    {
    bool down=false;...
  12. Replies
    15
    Views
    1,129

    Re: Question about class

    Well, in response to 2), he could just have one .cpp file, and have the using namespace std; at the top of this file.
  13. Re: how to send capital letters to another window?

    The keybd_event function acts just as if you had pressed the corresponding keys on the keyboard. Thus, if the window you want to send to is not in focus, the keystrokes will not reach it.
  14. Re: (Help) DirectX9 C++ program, doesn't work sometimes

    You've given them the debug version of the program, which depends on the debug version of the Microsoft CRT. People that haven't installed Visual Studio won't have these debug dll's.

    You're gonna...
  15. Re: Accessing .dat files within a folder, getting garbage values!!

    You're defining strings as char s, when they should be char* s, among other things.
  16. Replies
    1
    Views
    3,117

    Re: Mix GDI & OpenGL in the same window?

    I believe glScissor() is what you're looking for: http://www.opengl.org/documentation/specs/man_pages/hardcopy/GL/html/gl/scissor.html
  17. Replies
    3
    Views
    526

    Re: Been a While Since I have Programmed

    Please use code tags when posting your code.

    First of all, the string class does not need initialization via the [] operator (as far as I know); you can just create a string like such:
    string...
  18. Replies
    2
    Views
    385

    Re: Baffling Problem

    The get template needs to be terminated with a semicolon.
  19. Replies
    2
    Views
    1,079

    Re: Flash Movie in visual c++ Forms App

    Well, I don't know about that exception, but I do know that the backslash in the path to your .swf file needs to be escaped (e.g. "C:\\test.swf").
  20. Replies
    3
    Views
    693

    Re: Keyboard Input override?

    You should take a look at AutoIT. It's a programming language for windows, which contains functions to set hotkeys and to send keys to an application. So, to switch 'A' to 'B', the code would look...
  21. Replies
    3
    Views
    3,438

    Re: asterisk patterns

    First, you need to use a different variable in the for loops (o looks usable, but I like to use i,j,k). Replace all the index variables in the for loop with o. Next, I've been told it's bad...
  22. Thread: Copy?

    by calc0000
    Replies
    12
    Views
    601

    Re: Copy?

    %cd% is a special batch variable that gives the current directory. The reason I save it is once I go to C:\ , %cd% returns C:\ . However, once I saved it to %olddir% , olddir contained...
  23. Thread: Copy?

    by calc0000
    Replies
    12
    Views
    601

    Re: Copy?

    Well, I'm thinking you can write the batch file something like this (assuming the batch file is in the same folder as wget.exe):



    set olddir=%cd%
    C:
    cd \
    mkdir srcds
    cd olddir
    copy...
  24. Thread: Copy?

    by calc0000
    Replies
    12
    Views
    601

    Re: Copy?

    Well, I believe you might be able to run system("program.bat"). I'm not near a compiler, so I can't check it.
  25. Thread: Copy?

    by calc0000
    Replies
    12
    Views
    601

    Re: Copy?

    You might want to use "c:\\srcds". Windows file separators are backslashes.
Results 1 to 25 of 35
Page 1 of 2 1 2


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center