|
gothic_coder wrote: how do i get the real path?
I'm not sure offhand, I would suggest checking the MSDN documentation for this function and seeing if it has any links to other similar functions.
It's time for a new signature.
|
|
|
|
|
Hi,
I am using the CHtmlView derived class in my application to display an html page. However clicking any link in the page opens up by default in Internet Explorer. Is there any way I can make the links in the CHtmlView control to open up in the default browser set in the machine.
For example I set Firefox as the default browser. After that I launch my application and click on the link, it still opens up in IE.
Please let me know if its possible and how?
|
|
|
|
|
An (untested) idea would be to override the OnBeforeNavigate method, and then call ShellExecute on the URL. That will open the URL in the default browser. And of course you have to terminate the request in the CHtmlView.
|
|
|
|
|
Hi,
Thanks for the reply.
Control reaches OnBeforeNavigate2 only for links which open up in the application itself. For hyperlinks which open up in a browser, it reaches
OnNewWindow2 and I can call ShellExecute to open it in the default browser.
But the problem here is that I can't find out the url of the hyperlink that was clicked from inside this function. Is there any way to find it out?
The functions GetLocationURL, GetLocationName, GetFullName don't return the value that is expected.
|
|
|
|
|
I have no means of trying this for the moment, but wouldn't the activeElement[^] be the link that was selected? Just a guess though...
|
|
|
|
|
I saw this article, but I didn't have time to test it yet.
http://www.iol.ie/~locka/mozilla/control.htm
|
|
|
|
|
Hi all,
i want to export data from CListCtrl to excel file.
please tell me how can i do this.
thanks in advance.
|
|
|
|
|
There are lots of articles around (try here on CodeProject) about exporting data to Excel, either using ODBC or the Interop interfaces.
It's time for a new signature.
|
|
|
|
|
You can make a clipboard copy function, and format your clipboard text data using tabs and newlines. Then a simple paste in Excel will make the magic happen.
|
|
|
|
|
So are you having trouble "exporting" or "importing?" Be specific.
"One man's wage rise is another man's price increase." - Harold Wilson
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
write all elemtents separated with a ";" in a csv file. That can excel read.
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I have an MFC MDI application, with a view based on a dialog template. When the user clicks a button to start a certain operation, I want to change the cursor, then change it back again when the operation finishes.
If I process OnSetCursor in my main frame, this works nicely, except when the user is over a grid control in my view, where it switches back to the default. I've tried adding the same code to an OnSetCursor in the grid window code, but that doesn't help.
Is there no way to 'lock' a cursor change so that I have control over who or what can change it again? (I can't use SetCapture, it doesn't make sense).
The only other way I can think to get around this would be several awfully kludgey calls to SetSystemCursor to change the default system cursor, running the risk of changing the default system cursor by accident.
Also, if I use my own cursor it potentially won't match the current theme. Is there anyway to take the current cursor and overlay something on top (like a plus sign)? Something akin to icon overlays?
|
|
|
|
|
I'm not a Windows GUI specialist, however the way I understand it, you should choose one of these two models:
1.
your GUI is basically unavailable to the user, so you show a wait cursor, but don't accept the user to point, click, or type in that form (which all would be hard anyway lacking a normal cursor). This would be accomplished by modifying the cursor somehow (don't know the details), and disabling a lot of stuff.
2.
your GUI is fully available except for restarting the ongoing action which should not be started again before it finishes. This gets accomplished by leaving the cursor alone, and simply disabling whatever Control started the action (e.g. disabling a Button, or alternatively changing its function and text, say to "Cancel"). Since Controls look different when disabled or you changed the text, that should at the same time be your clue that the action is still on-going.
Hope this helps.
|
|
|
|
|
This was a request from our users and I'm investigating the possibilities. What they want is more of a status indication I think. That is, they want something at the cursor level to show they are in "Adding" mode (say) or "Creating" mode. This wouldn't impact on the behaviour of the app, just serve as an extra visual cue.
I'm starting to think this isn't worth the effort and there are other cues I could use (and already do, maybe they are just too subtle for my users!)
Cheers,
Dan
|
|
|
|
|
OK, that should be achievable by setting the default cursor belonging to the Control(s) that is/are affected by that state. Which basically would mean you need cursor variants that look pretty much like the original (plus a little addition) so the Control(s) remain fully operational. However it would then only affect this/those Control(s), so when hovering an unrelated Control, nothing special would be noticeable.
I'm pretty sure standard Windows itself or some Microsoft application (Office?) has some examples of this, however none of them come to mind right now. A little Googling resulted in this[^] and this[^]
|
|
|
|
|
Yeah....like I said...probably too much effort (especially as changing the cursor for my main control (the grid) doesn't appear to work anyway)
|
|
|
|
|
i am trying to make a project on payment gateways.
Now ,the person who is guiding me on this project told me to build a socket client and socket server using QT (quick technology).
He also told me some other suff too i.e. some kind of messageing format to use.
I want to say that i don't know anything about this whole thing at present i.e about Qt /messageing format.. but i want to make this a working project by my own .
I need your help to understand the concept.
Please show me he right path.
I knew general c/c++ & little bit of java .
Please suggest me the starting point for my project.
I am not requesting any ready-made code , i am just requesting to help me to start my project by suggesting me the steps that i must take to complete my project.
and one thing more .. i don't know anything about network programming.
please HELP me.....
thanks
|
|
|
|
|
gateway23 wrote: i am trying to make a project on payment gateways.
OK, how much of this[^] do you actually understand?
gateway23 wrote: i don't know anything about network programming.
This is probably not too much of an issue, but you will need to learn something about websites, their creation and maintenance. Try looking into ASP.NET[^], you may even find a ready made solution somewhere in the tutorials.
It's time for a new signature.
|
|
|
|
|
gateway23 wrote: I knew general c/c++ & little bit of java .
well im not experianced programmer but I think Network Programming is very easy with Java. Database can also be handled easily, well its not that easy but still if you know a little bit about jave, you should be able to pick it up quickly.
Personally i like visual studio 200X to program database apps, i love ADO.NET type features. But i have never implemented network programming on VS 200X using C# or VB.
|
|
|
|
|
sir.. i want to complet my project in c/c++ language.
If you any idea idea on socket programming in c/c++ , please suggest me.
|
|
|
|
|
i don't know if i would be any help for you, however you can learn Socket from this site itself, as it have lot of article dealing with sockets.
and about payment gateway, you can read more about ISO 8583 format!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi, i would like to know how to Read byte from USB port and then write the data into file: Can someone help me on this
i have try to modify the ReadByte() but no data was shown. It shown
0.000
0.000
in my output file. I'm out of idea.
Attached the coding:
BOOL CSerialCom::ReadByte(BYTE &resp)
{
BYTE rx;
resp=0;
FILE *ofp;
DWORD dwBytesTransferred=0;
if (ReadFile (hComm, &rx, 1, &dwBytesTransferred, 0))
{
if (dwBytesTransferred == 1)
{
resp=rx;
ofp=fopen("BCISignal.txt","w+");
fprintf(ofp,"%lf\n",resp);
fclose(ofp);
return true;
}
}
return false;
}
FYI, in my hex code, i had configured buffer[4] to send 4 byte datafrom 2 channel. Now i need to read this buffer[4] one by one in SerialCom().
|
|
|
|
|
fprintf(ofp,"%lf\n",resp);
Why are you trying to format a single byte into a long double, it makes no sense? You should write the data as binary or format it into hex characters (with the X format specifier). However you have not really explained what your code is trying to do, so this may not be the actual solution you need.
Please also edit your post and put <pre></pre> tags around your code.
It's time for a new signature.
|
|
|
|
|
I am writing an application that outputs information to the standard output. Messages to the user can come from different process and so I use EnterCriticalSection to this. But I want a way through which the last process that outputs information can switch to the last screen information. The application is written in C++. Is it possible, if yes how do I do it.
I also want to know if the header file "process.h" is a Windows file or is part of the ANSI C/C++ standard header files. Thanks.
|
|
|
|
|
i have this problem someone can help me?
|
|
|
|