I need to access a few functions of the win32 library in ruby. I have found extremely sparse information on the Win32API class online, so I'm asking here.
I know that you can do something like this:
function = Win32API.new('user32','MessageBox',['L', 'P', 'P', 'L'],'I')
But I can't seem to be able to call this function with the curre...
I have a native C Dll that calls 'LoadLibrary' to load another Dll that has the /clr flag turned on. I then use 'GetProcAddress' to get a function and call it on dynamically loaded dll. I would like to step into the dynamic library in the debugger, but the symbols never load. Any idea?
And I should have said I'm using Visual Studio 2...
A legacy app I am working on currenty takes ~2hours to build. The project has about 170 projects with 150 or so being unmanaged C++ and the other 30 C#.Net 2.0.
What are some suggestions on ways to improve build times for something like this?
...
Looking for something similar to Modelmaker that was for Delphi.
Showing dependecies of modules. Any help is appreciated.
Doxygen has been great so far. If someone know if it's possible to
achieve what I want with Doxygen, then please let me know :)
...
I was wondering; is it possible to acquire write access to the graphics card's primary buffer though the windows api, yet still allow read access to what should be there? To clarify, here is what I want:
Create a directx device on a window
and hide it. Use the stencil buffer
to apply an alpha channel to pixels
not written to by my code...
Given image file with no extension, how can I read the image file and identify the file format in C++?
...
In Windows, is there a way to check for the existence of an environment variable for another process? Just need to check existence, not necessarily get value.
I need to do this from code.
...
(Preamble: I am a late follower to the C++0x game and the recent controversy regarding the removal of concepts from the C++0x standard has motivated me to learn more about them. While I understand that all of my questions are completely hypothetical -- insofar as concepts won't be valid C++ code for some time to come, if at all -- I am s...
The program takes a string using getline, and then passes that string to a function where it stores the string into substrings separated by whitespace. I did that just by reading characters with a loop.
However, now I'm trying to pass a second string argument that separates the strings into substrings if the loop encounters characters i...
How do I write my application so it'll live in the system tray on Linux? In fact, just like CheckGmail.
As with CheckGmail, I'd also like some sort of popup box to appear when I hover the tray icon.
Is there an API, class or something for doing this? All I'm able to find seems to be for Windows.
If I have to be language specific, then...
Hi,
Can you please tell me how can I dump all the symbols in a .a file on MacOS X?
I am getting a linking error while compiling my c++ problem on MacOS X. I would like to find out if the sybmols exists on the .a file that I am linking with.
Thank you.
...
I wonder how people are using C++0x lambdas, in terms of coding style. The most interesting question is how thorough to be when writing the capture list. On one hand, the language allows to list captured variables explicitly, and by the "explicit is better than implicit rule", it would therefore make sense to do an exhaustive listing to ...
namespace A
{
#include <iostream>
};
int main(){
A::std::cout << "\nSample";
return 0;
}
...
Hello. Is is possible to print to stderr the value of a preprocessor variable in C? For example, what I have right now is:
#define PP_VAR (10)
#if (PP_VAR > 10)
#warning PP_VAR is greater than 10
#endif
But what I'd like to do is:
#define PP_VAR (10)
#if (PP_VAR > 10)
#warning PP_VAR=%PP_VAR%
#endif
Is something like this...
Hello,
Our environment: CentOS 5, which comes with Apache 2.2 and rsyslog 2.0.6
In order to send Apache 2.2 error log we followed instructions found on the here: http://wiki.rsyslog.com/index.php/Working_Apache_and_Rsyslog_configuration
It works, but the included perl script is very inefficient - it takes huge part of the system resou...
This program reads strings of numbers from a txt file, converts them to integers, stores them in a vector, and then tries to output them in an organized fashion like so....
If txt file says:
7 5 5 7 3 117 5
The program outputs:
3
5 3
7 2
117
so if the number occurs more than once it outputs how many times that happens. Here is...
I've been a LAMP developer for 5+ years. I have learned quite a bit on my own, but I feel like my "context" as a software developer is limited (ie. I can only create scripts & web applications). Ultimately I'd like to be able to create a range of applications from daemons to desktop apps. Additionally I'd like to learn more about the "in...
I'm kind of wondering about this, if you create a texture in memory in DirectX with the CreateTexture function:
HRESULT CreateTexture(
UINT Width,
UINT Height,
UINT Levels,
DWORD Usage,
D3DFORMAT Format,
D3DPOOL Pool,
IDirect3DTexture9** ppTexture,
HANDLE* pSharedHandle
);
...and pass in D3DFMT_UNKNOWN format what is s...
Is this a correct ?
This is compiled with g++ (3.4) sucessfully.int main()
int main()
{
int x = 12;
char pz[x];
}
...
Hello everyone,
I'm looking for a good C++ library to give me functions to solve for large cubic splines (on the order of 1000 points) anyone know one?
Thanks in advance,
-Faken
...