|
You have to make a logic to do all above in the OnPaint function that takes care of looks of dialog, doing in OnPaint also solves the problem caused by minimizing the dialog.
|
|
|
|
|
how can I create emulator microphone device to play audio file throught it and save in my sound file format?
somebody give me an idea, thanks!!!
Nho'c Ti`
|
|
|
|
|
I think u should look for File format converter.
|
|
|
|
|
Hello!
This is my first post to this forum and english is not my mother tongue, hope you understand me.
I have the following expression
(?:<b>)?(.+?)(?:</b>)
and the string
<b>test</b>
. I am using regex_search function and the match I get is "<b>test". But the first part of the expression "(?:<b>)?" should be greedy, and the "<b>" at the beginning should not be in the match. Am I right?
How should I write the expression to get "test" without "<b>" as the match?
I want to read a word from a webpage, and this word may be between "<b>" and "</b>", but it doesn't have to. This expression is part of a bigger project (part of a bigger expression).
You can download the source code and exe from here http://www.icpnet.pl/~arekrob/regexp2.rar .
Are there any tools to help writing regular expressions compatible with boost regex library?
|
|
|
|
|
try this tool, it's terrific:
http://www.codeproject.com/dotnet/Expresso.asp
About the expression:
I'd use this as an expression:
[<b>]?(.+)?[</b>]?
-- modified 12-Sep-18 21:01pm.
|
|
|
|
|
Thank you for the answer.
This tool is really good, bo unfortunately it isn't compatible with the library I'm using. It returns "test" as the match, not "<b>test". You can see this in the following picture:
http://www.icpnet.pl/~arekrob/regex1.png
I am using Microsoft Visual C++ 6.0 and boost regex library as described here http://www.codeproject.com/string/regex__.asp.
Maybe the library has an error? If that's true what other regular expressions libraries would you recommend? I've tried PCRE but I don't know how to use it in MSVC++ 6 (I found no examples on the Internet).
|
|
|
|
|
Well, then your regex is wrong.
This works fine for me:
([<b>]?.+)</b>
-- modified 12-Sep-18 21:01pm.
|
|
|
|
|
|
I have a question about a linker error when including some libraries in my application.
This is what i have done:
First I have compiled the ximage.lib and png.lib as static libraries and I got no errors.
Then I have linked ximage.lib and png.lib to my application.
When I compile the application I get these linker errors:
ximage.lib(ximapng.obj) : error LNK2019: unresolved external symbol _png_read_row referenced in function "public: bool __thiscall CxImagePNG::Decode(class CxFile *)"
The png_read_row function is declared in the png.lib project, so how can I get these errors when both libraries compiled successfully?
Where should I look for the error, in the png.lib, or in the ximage.lib or should I use some magical setting in the application project?
I hope someone can tell me what I am missing!
Thanks, Dani
|
|
|
|
|
make sure you're putting any #includes from libpng inside extern "C" wrappers:
extern "C" {
#include "png.h"
}
Software | Cleek
|
|
|
|
|
I'm writing a program that needs to capture the Fn key on my laptop, but have not been able to capture it. I've tried using of the keyboard hooking using SetWindowsHookEx, but it doesn't capture the key stroke. Any ideas?
|
|
|
|
|
I recently read on google groups that it's not possible - i've tried to accomplish this recently, too. You'd need to write a very low level keyboard bios (or whatever, i don't know).
regards
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Hi, I have done this in wince, but it should be the same:
Do you have any window or is it a background process?
If you do have a window, the window has to have focus!
You should check the exact messages send in the system using the SPY tool.
Anyway, I have managed to get the hook function to work in wince, but if another application is using the hook function, at least in wince, only one application can hook the keyboard so another call to the hook function will fail.
Try to use this code and put a breakpoint after the case WM_KEYDOWN and see if the WndProc captures the WM_KEYDOWN message.
If it does that check the wparam to see the value when you press the key, you might be looking for the wrong value in wparam that belong to your specifique key press!
LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
{
HDC hdc;
int wmId, wmEvent;
PAINTSTRUCT ps;
TCHAR szHello[MAX_LOADSTRING];
switch (message)
{
case WM_KEYDOWN:
switch(wParam){
case 0x00000031:
OutputDebugString(L"Key_1 pressed \n");
break;
}
}
This is wince style so you have to change it a bit!
Try to get focus to your application in the beginning SetFocus(hWnd)!
I hope this help?
Cheers Dani
|
|
|
|
|
How can i create a CStatusBar on a CWnd Parent Window? It doesn't seem to work when I try it.
Thanks
|
|
|
|
|
Hello,
Does anyone knows how to work with multi-column listbox, how to work with the columns and the data? any help or link is appreciated!
Thanks
|
|
|
|
|
Have you specified the LBS_MULTICOLUMN style?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
I will, but only after I figure out how to deal with the columns and the data
|
|
|
|
|
Deian wrote:
...but only after I figure out how to deal with the columns...
The listbox will not have columns without that style.
Deian wrote:
...and the data
There's nothing special about the items that are inserted into a listbox when multiple columns are involved. Use the LB_ADDSTRING message in either case.
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
If you want multi column please check the CListCtrl control
modified 12-Sep-18 21:01pm.
|
|
|
|
|
Well, I wanted to avoid using the CListCtrl, and I was curious on how to make it work. I don't have documentation about the functions involved in manipulating the columns, and dealing with data in the multi-column listbox.
|
|
|
|
|
|
can anyone pls help, i wan to retrieve the RIP header information using c++, anyway to do tis? how?
|
|
|
|
|
Have you read through RFC 1058?
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Can someone please help me, I am trying to program my own Html browser, i am new to VC++.
I have two problems.
1) Created a new project in VC++ using the CHTMLVIEW base class, but get error message when i delete all the File,Edit option from the IDR_MainFrame ( I dont want the option bar) "FAILED TO CREATE EMPTY DOCUMENT"
2) I imported a HTML file in the resource, Works fine using the LoadFromResource(IDR_HTML1) but i can not get the links in that page to work,(works fine in normal IE)
Is there a easy way to combine html pages with in the C++ project file??
Please ,Please help....;P
|
|
|
|
|