For the #1, I think you need CreateProcess for monitoring the external app.
Type: Posts; User: Joelito
For the #1, I think you need CreateProcess for monitoring the external app.
I'm sorry if my question don't fit here, I didn't find a proper place to ask.
When I build from the command line a library with msvc 2010 (the one that comes with psdk win7 & .Net 4.0) I can see...
This is my code:
#include <stdio.h>
#include <limits.h>
#include <stdlib.h>
int parse_string (const char *s1, char *s2) {
int pos = 0;
while ( (*s1 != '\0') || (*s1 != '\t') ) {
I'll go with the simplest:
#include <iostream>
int myprint() {
return 3; // return this to the stream
}
int main() {
Hi, I'm trying to output only a few files, using regex, from the current directory, this is my main code:
// main.cpp
{
char * _dir = new char[MAX_PATH];
getcwd(_dir, MAX_PATH);...
Yes, I know...but I'm trying to do it for myself :)
plus, learn about to use "&buffy"
This is my code:
#include <stdio.h>
#include <stdlib.h>
int parse (char **buf, const char *src, const char *ext)
{
const char *cpy = src; /* make a copy */
int len = 0; /* total size of...
Thanks kmess :)
Hi!
I'm trying to find an executable in the users environment PATH, let's say I want to search for "foo.exe", how can I traverse getenv ("PATH");
switch(pHdr->code)
{
case CDN_SELCHANGE:
{
HWND hRealDlg = GetParent(hDlg);
UINT lenReqd =...
Hi adeyblue, I adopted your code with mine:
BOOL CWnd::IsAddressInCurrentThreadStack(PVOID pData)
{
NT_TIB* tib = (NT_TIB*)NtCurrentTeb();
return ((pData < tib->StackBase) && (pData >...
Hi, in the GetOpenFileName, I want to allow multiple files selection:
UINT CALLBACK CWnd::OFNHookProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
{
switch(message)
{
case...
Thanks, guys...I read about map and googled around and I came with this:
ustring CWnd::MakeFilter()
{
/* mapped the file extensions that we want to use */
m_Filtro["Archivos PNG"] =...
This is my vector:
vector<string> ext;
exts.push_back(TEXT("png"));
exts.push_back(TEXT("jpg"));
exts.push_back(TEXT("gif"));
exts.push_back(TEXT("bmp"));
I wan to create the vector into...
Thanks CommonTater, you were close, trackbar uses also WM_HSCROLL and WM_VSCROLL :)
I have a horizontal trackbar and a static control. What I need is to while I move the slide the current value reflects on the static control...
While I already set the rang value:
...
Not necessary, according to msdn => GetMessage:
Since my windows in the only in my current thread
@adeyblue: Thanks, I modified the code so I pass the class string...thanks :)
I'm having problems with my code...the code doesn't show a window, but is in the taskbar manager list...any ideas
// CWnd32.h
#include <windows.h>
#include <string>
using std::string;
@CommonTater: But is a dialog...all the controls have the dialog hwnd as parent :(
I'm having trouble to put two buttons over a static control, because I need a special color for that static control...
right now all my dialog background is white, with:
case WM_CTLCOLORDLG:...
How to change a file encoding from iso-* to UTF-8 from my app?
GDI+ can open, png, gif, jpeg, tiff and some other...
or..try CImage
Thanks, I'll try EN_UPDATE
Hi!
How do you guys validate an edit control to accept only some chars?
I have a theory about it...
1.- subclass the edit control
2.- trap the WM_KEYPRESS or WM_CHAR
3.- test the character...