|
Hi,
Answers for more general questions you can find out on
Designed for Windows XP[^]. There is specification and many hints how to write & develop application - recommended by Microsoft.
-----------
Mila
-- modified at 0:57 Thursday 20th April, 2006
|
|
|
|
|
I am new to Pocket PC. I would like to develop some directshow applications on PPC. Would you please give me some advice, such as developing tools, or some website to find help? Thanks.
|
|
|
|
|
Not sure if Gdiplus has this feature but i would like to zoom or have an appearance of zooming. I have an MFC application that views .jpg images. When the image appears on my screen i place a cross bar reticle like
|
_ _
|
I am attempting to do two things.
1. Zoom on the area in the middle of the above reticle
2. Based on a mouse click of any area, magnify or zoom that spot
Anyone with any experience in this area?
|
|
|
|
|
Besides the fact that strcpy is win32 and StrCpy is MFC, what would vary the use of one over the other?
I have an MFC dialog application and if i use StrCpy, it says undeclared. If i use strcpy, i have no problems...
Can anyone shed some light on the uses of the two. Am i maybe missing an include file?
|
|
|
|
|
StrCpy is declared in shlwapi.h
Why is common sense not common?
Never argue with an idiot. They will drag you down to their level where they are an expert.
|
|
|
|
|
Hi,
I would say look at this link -
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/shlwapi/string/strcpy.asp
cheers
Pk
|
|
|
|
|
LCI wrote: Besides the fact that strcpy is win32 and StrCpy is MFC
strcpy is a CRT function. StrCpy is a Win32 API function.
Regards,
Nish
|
|
|
|
|
LCI wrote: what would vary the use of one over the other?
If you are writing an app that doesn't use the MS CRT (such as an ATL project built with _ATL_MIN_CRT ) then the shlwapi version is a suitable replacement for the CRT version.
--Mike--
Visual C++ MVP
LINKS~! Ericahist | NEW!! PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
|
|
|
|
|
Why is one better than the other?
One is MFC. If you use MFC Code throughout, yo can hope that when MFC64 is fully ported, that your code will recompile with minimum fuss at 64 bit level. That hope would not be nescessarily there if you use win32 Code. conversely, if you use win32 code throughout, you may hope that it will sucessfully compile to 32 bit code on a 64 bit compiler, you have no hope of that if you use MFC Code. In Short, it is all a matter of what you hope for the future. The worst case scenario is of course what all of us do most of the time, and that is mixing up the calls. Doing that means that our code will fail to compile as sooa as the compiler changes.
The question is NOT as foolish as the first respondent would make us believe. Let him throw the First Stone...
LateNightsInNewry
|
|
|
|
|
I write a application in form "Dialog" using Menus:
Option
* TurnMusic
I want that : when user click left mouse on "TurnMusic" menu,
a checked sign is displayed on that.
I write this code :
void CMenusDlg::OnUpdateOptionTurnMusic(CCmdUI* pCmdUI)
{
// TODO: Add your command update UI handler code here
pCmdUI->SetCheck(TRUE);
MessageBox("Checked !","Try Menus",MB_OK);
}
but:
when the program is runned, the checked sign is not displayed and MessageBox is excuted ofcourse!
If i write that Application in form SDI then checked sign is displayed normally.
this is occured similarly when i using hotkey in menu
(or is called : Accelerator)
Why ???
now, i want to write my Application in form "Dialog"
How must i do ?
Could you help me, please !!!
Lgx
|
|
|
|
|
|
Hello,
I am a C#/VB programmer. I am trying to fix something that someone else wrote. There is a variable of type _variant_t. I need to take that value, and split it into 2 smaller variants. I am having problems doing this. If anyone can point me in the right direction, I would appreciate it. Here is the variable, "v", that I need to split into 2 variants.
//--------------------------------------------------------
// "m_pResponseBuf->BufPtr()" is a pointer to the text in
// a Response object.
//--------------------------------------------------------
_variant_t v( m_pResponseBuf->BufPtr() );
m_Response->Write( v );
How would I take a portion of "v" and put the results into another variant?
Thanks
Danny
|
|
|
|
|
A portion of v, from what you said, would then be a part of a string. To do string operations you can transfer the string into some more usable string object, do the operation you want then transfer the result into a variant.
Usually a string contained in a variant is of type _bstr_t, so you can do:
CString myString = (LPCTSTR)(_bstr_t)v;
//Do operation on myString
//Back into variant.
_variant_t v2( (LPCTSTR)myString );
|
|
|
|
|
Hello and thanks for the response. Is CString only for MFC apps? I read that somewhere. This dll I am working on is does not use MFC. I'll see if I can do something similar to this, which probably doesn't work, but I'll give it a shot.
std::string myString = (_bstr_t)v;
myString = myString.substr(0,1000);
_variant_t v2( (_bstr_t)myString );
Thanks!!
|
|
|
|
|
Indeed my example was using MFC. Your example using std might work, but their might be a problem with the last operation:
_variant_t v2( (_bstr_t)myString );
not sure you can typecast an std::string with _bstr_t.
Louis
* google is your friend *
|
|
|
|
|
You're right. Didn't work.
Thanks
|
|
|
|
|
hint.
myString.c_str() will return a "const char *". You can then assign that to the variant.
_variant_t v2 (myString.c_str());
Louis
* google is your friend *
|
|
|
|
|
You're right! I tried that, but I did it wrong. I used:
_variant_t v2 (myString.c_str);
Now it works with the parenthesis. Thanks!!!
|
|
|
|
|
Hi
can you help me plz?
I want to use InternetFindNextFile with http not ftp
I use this way
1- InternetOpen
2- InternetConnect
3- ? which function (I think FtpFindFirstFile is for ftp not http)
if i want to use InternetFindNextFile it dont work
can you help me plz?
Thanks in advance,
|
|
|
|
|
messages wrote: if i want to use InternetFindNextFile it dont work
Why? Did you first call FtpFindFirstFile() ?
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Hi DavidCrow ,
I dont need to ftp I want to use InternetFindNextFile with http but I dont konw can you help me pls?
thanks
|
|
|
|
|
Did you miss this in the documentation:
InternetFindNextFile() continues a file search started as a result of a previous call to FtpFindFirstFile() or GopherFindFirstFile() .
If you are using MFC, there are several HTTP-related classes you can use for file retrieval.
"Let us be thankful for the fools. But for them the rest of us could not succeed." - Mark Twain
"There is no death, only a change of worlds." - Native American Proverb
|
|
|
|
|
Dear DavidCrow
I use FtpFindFirstFile but it return 0
WIN32_FIND_DATA data;
HINTERNET h3= FtpFindFirstFile(h2, "*.*", &data, 0, 0);
I guess that it work only with ftp
I use
hInternet = InternetOpen("View",INTERNET_OPEN_TYPE_DIRECT,NULL, 0, 0);
HINTERNET h2=InternetConnect(hInternet,??,INTERNET_SERVICE_HTTP,NULL,NULL,INTERNET_SERVICE_HTTP,0,0);
in ?? I dont know that what? address from ftp or http
if I write www.namesite.com then it return handle HINTERNET
I want address from only http://
but HINTERNET h3= FtpFindFirstFile(h2, "*.*", &data, 0, 0);
always return 0 and data is unknown in fact NULL
Thanks DavidCrow
|
|
|
|
|
The HTTP spec doesn't allow for directory browsing, you need to know where the file is before you can retrieve it. Any sites which *look* like it's a directory listing is just a HTML page that the server is generating on the fly.
You'll need to see if theres an FTP (o Gopher ) version or the site.
Gavin Taylor
w: http://www.gavspace.com
|
|
|
|
|
Hi,
using Visual Studio 2003.
I have created a simple dialog based mfc application. I added a second resource file, adjusted the starting symbol values in the generated resource1.h file. Then I added a dialog to that new resource file. My problem is that I cannot add a variable to a control (value or control variable). I cannot see any control IDs in the events pane of the dialog properties so that I could add event handlers to controls. It works with the main resource file but not with this second one.
What am I missing ?
Louis
-- modified at 13:15 Wednesday 19th April, 2006
|
|
|
|