|
|
Thanks Garth J Lancaster!!!
it was a great article. I got my work Done ...
Thanks
|
|
|
|
|
For supporting Tab key navigation through controls in the popup dialog created in an OCX, I have implemented the message hook as described in Microsoft Help and Support Article ID: 187988[^]
Now the IME for Japanese is not working fine. When the IME is enabled for input as Hiragana (or something), there is no proper result. I found that this is because the keyboard message is always altered in the hook procedure.
Do anybody have come such a scenario and found a solution?
Thank you.
- ns ami -
|
|
|
|
|
I want to Validate a EditBox only number entry, including (+ or - values).I used SpanIncluding function of CString. my code is
CString value;
value=m_strEditBox.SpanIncluding ("0123456789-+");
if(!(value==m_strEditBox && value.GetLength ()==m_strEditBox.GetLength ()))
{
MessageBox(_T("Invalid Entry"),MB_OK,MB_ICONINFORMATION);
return;
}
it works fine only when user enters like -10 or +15.
But if user enters wrong value like 10- or -14- or +15-20 or ----- or +++++ for this type of values entry ,the above condition will not work it will not fire the error Message like Invalid Entry.For this i am getting strange output so how to restrict or validate for this type of entry in EditBox.Help me. Thanks in Advance.
|
|
|
|
|
Check this link below [^]
|
|
|
|
|
Hello Friends
I want to display thumbails for my Files in the same way as windows does for .jpeg and other bitmap images.
I want to know how windows display them means it uses some bitmap images or some dtabase to display them.
I m having all the bitmap data that i want to display as thumbnail for my files but how do i use that windows display them as thumbnail?
Thanks in Advance
Regards
Yogesh
|
|
|
|
|
Use a CListCtrl and set as icons(LVS_ICON), now you can show the thumbnail image.
Величие не Бога может быть недооценена.
|
|
|
|
|
I dont want to display icons n list control.I want how to display as thumbnail.
And I m using only win32.
|
|
|
|
|
I m asking how i can display it as thumbnail.how window will recognize that this bmp is for mine file format?
|
|
|
|
|
I don't understand dear.
Whether you want to display a bitmap as thumbnail in your window?
Величие не Бога может быть недооценена.
|
|
|
|
|
yes,I want to display a bitmap as thumbnail in window.and I m using the win32 and c++.
|
|
|
|
|
You have 2 options
1. Draw the thumbnail from bitmap using DC in the dialog, if you dont like to use CListCtrl.
2. As suggested, you can use ListCtrl, as suggested ns ami.
Величие не Бога может быть недооценена.
|
|
|
|
|
|
Horrible and wrong method.
The right method is with COM.
|
|
|
|
|
- ns ami -
|
|
|
|
|
If you'd like to show your file as a picture in explorer's thumbnail mode, maybe you can fill the 'zoomed' image data(bmp/jpg/...) in file header.
|
|
|
|
|
Windows uses Win32 COM (Thumbnails interfaces)
You can ask on Adv. Win32 api newsgroup :
news://nntp.aioe.org/comp.os.ms-windows.programmer.win32
or
http://groups.google.com/group/comp.os.ms-windows.programmer.win32/topics?lnk=srg
for official code (MS) to display thumbnails.
|
|
|
|
|
Hi,
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles Command1.Click
Dim barcord1 As String
barcordreader = New HANBARCORDLib.barcord
barcordreader.ReadBarcord("c:\image.raw")
barcordreader.GetBarcord1(barcord1)
Text1.Text = barcord1
End Sub
End Class
the variable, barcord1 is declared by "String".
And it is possible that a parameter of the method, "barcordreader.GetBarcord1(BSTR*)".
But I don't know how to change the code by Visual C++.
I actually made it like this :
BSTR barcord1[64]={NULL,};
barcordreader.GetBarcord1(barcord1);
but it doesn't work.
I want to get result as a type of string.
please help me.
Thanks for reading..
|
|
|
|
|
BSTR barcord1;
barcordreader.GetBarcord1(&barcord1);
::SysFreeString(barcord1);
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
I use source code On the Web site(http://www.codeproject.com/script/Forums/Edit.aspx?fid=1647&floc=/Forums/1647/C-Cplusplus-MFC.aspx). What should I do?Thx,
|
|
|
|
|
You name the price...will send it to your paypal immediately. Need a couple programs written...basic function program, 2 basic string programs, and 2 soon to be determined assignments along the lines of printing results I think. Pretty much need help with my homework. Should be super easy for a programmer, of which I am not. Get greedy, I have to get these in immediately, or risk failing a course thqat cost me a lot of money.
|
|
|
|
|
Sorry for this repost but I never found the solution.
Now I need to use struct as function parameter again and I am stuck with this error again and I cannot find anything about this in WWW.
I am adding a function with struct variable (using wizard function add) typing
Function(struct*) and I am getting this:
Function ($S1) in cpp and Function(struct *) in the h file.
Of course, the compiler complains about missing definition.
Is this a known bug?
Declaring a function manually gives same results.
void Test(struct * );
shows up in VC++ editor view as
Test($S1) immediately.
Do I need to use typedef?
Thanks for reading. Any constructive help as always is appreciated.
Thanks Vaclav
|
|
|
|
|
What is the name of the structure and where have you defined it?
You need to google first, if you have "It's urgent please" mentioned in your question.
_AnShUmAn_
|
|
|
|
|
I appears that the VC 6.0 wizard has a problem using struct as a function variable. If I add all the necessary code manually it works as expected,but in the file tab the VC editor cannot find the function definition.
It would be interesting to know if never VS have same problem.
For now call it hacked.
Here is "normal" definition / declaration I am using
Declaration
struct NewTest
{
int a;
}aa,bb,*CC;
struct TEST
{
int a;
}a,b,c,*d;
int Test(struct TEST );
void TestOne(struct NewTest *);
Definition
int CStructTestView::Test(struct TEST a)
{
return 0;
}
void CStructTestView::TestOne(struct NewTest *d)
{
}
I have no clue where did this &xxx junk came from.
|
|
|
|
|
Hi, guys, I'm writing simple tool for interest, like managing softwares, file association or IE history.
But when I get into this field, I find there are many information stored in files or registry. Like "index.dat" or "HKLM\SOFTWARE\Clients".
So I want to know, where I can get more information about such thing( registry about shell )?
Thanks in advance.
|
|
|
|