|
Refresh what?
If it is the window or dialog, then: RedrawWindow();
this is this.
|
|
|
|
|
for example i want to refresh the window containing an enhanced image
|
|
|
|
|
If the window you want to refresh was created by you, then you can take the handle of that window, and refresh it using RedrawWindow(); Like:
m_pEnhancedWindow->RedrawWindow(); //where m_pEnhancedWindow is the pointer to that window.
I don't know how you are using the window. I mean if you have its handle, pointer etc.
If this does not solve the problem then a little code would help.
this is this.
|
|
|
|
|
hi i am tryin to join 2 byte array into one.. any hint on how to do so?
example..
byte[] ok1=new byte {0x00,0x10,0x11};
ok2 = txtStatus.Text + (Convert.ToChar(13));
byte[] ok_byte = Encoding.ASCII.GetBytes(ok2);
byte bigOK=new byte[100];
now guys i tryin to join add ok2 to ok1
and put into big OK..
there fore by sending bigOK i sent out ok1 n then ok2 all at one time..
pls help..
|
|
|
|
|
Your example does not clarify things (at all).
It sounds like you want to concatenate two strings (s3 = s1 + s2), or concatenate two arrays (vectors).
Oh MFC right? In that case you can also use CString or CWordArray.
INTP
Every thing is relative...
|
|
|
|
|
John I think he is talking about .net stuff.
with little knowledge of it I can say, why dont those two byte arrays converted into strings ,add it , and again cnvert it to Byte array.
|
|
|
|
|
I really do not know what he is talking about. Accept that it is based on what came before.
prasad_som wrote:
with little knowledge of it I can say, why dont those two byte arrays converted into strings ,add it , and again cnvert it to Byte array
Ignorance; what else can I say.
INTP
Every thing is relative...
|
|
|
|
|
with little knowledge ?
jus 4 fun
V
|
|
|
|
|
Does anybody know how to work with that type of GPS, i mean differencial gps, that can recieve data from the local stations... And can i write a programm to work with that type of GPS without any other software?
|
|
|
|
|
Rassul Yunussov wrote:
Does anybody know how to work with that type of GPS, i mean differencial gps, that can recieve data from the local stations...
What do you mean, how is the system essentials?
Rassul Yunussov wrote:
And can i write a programm to work with that type of GPS without any other software?
Theoretically, if you have a DGPS terminal it's enough to retrieve the corrected data.
In Europe and a couple of years ago, if you wanted to use this system with a simple GPS (not differential enabled) you needed a decoder software for the received signal from the local radiostations to preprocess the data before using it in your final software because it was encoded with a system called RASANT.
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
Do you mean that if I can work with DGPS as like with simple GPS?
And where can i find comprehensive information about DGPS? And about local radiostations? But i know that ArcPad needs some addons for working with diff. gps... What do you know about this?
Thank YOU very much for participating
|
|
|
|
|
Rassul Yunussov wrote:
Do you mean that if I can work with DGPS as like with simple GPS?
No, you'll need a hardware piece that'll decode the differential information from the radiostation.
Rassul Yunussov wrote:
And where can i find comprehensive information about DGPS?
DGPS[^] basis
Rassul Yunussov wrote:
And about local radiostations?
I don't think you'll find a global list. Look at the most important radiostation of your area to know if they transmit the differential info. In USA there's the Coast Guard that transmits it:
Coat Guards[^]
Rassul Yunussov wrote:
But i know that ArcPad needs some addons for working with diff. gps... What do you know about this?
No idea
I hope it helps!!
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
well, i'm really sorry I don't know english well
I'll try to explain again - i have GPS with pocket PC, and i got a software that works with GPS. But the accuracy of GPS is not good, i need more than 1 meter... That's why i begin to thing about DGPS... If i'll buy DGPS, do i have to change my code of recieving data from DGPS?
|
|
|
|
|
Rassul Yunussov wrote:
do i have to change my code of recieving data from DGPS?
Depends on what your software does. DGPS is used to correct the data so the information that is generated is better but, as far as I know, the GPS output in NMEA format is the same, just with an smaller error. I've never used a DGPS in a Pocket PC, all I know is theorically because I did my engineering research project about GPS signals...
Marc Soleda.
... she said you are the perfect stranger she said baby let's keep it like this... Tunnel of Love, Dire Straits.
|
|
|
|
|
For the MODBUS TCP programming, I don't understand how to program. I read some information about MODBUS TCP and still do not have some sample of source code for MODBUS TCP but only have MODBUS RTU. I really need sample of source code for MODBUS TCP.
|
|
|
|
|
I have this...:
#include <windows.h>
#include <iostream>
#include <string>
#import "msxml3.dll" // using msxml v1 parser
using namespace MSXML2;
int main()
{
using namespace std;
CoInitialize(NULL);
IXMLDOMDocument2Ptr pXMLDoc;
IXMLDOMProcessingInstructionPtr pDOMProc;
IXMLDOMElementPtr pXMLElem, pXMLNodes;
pXMLDoc.CreateInstance("MSXML2.DOMDocument");
pXMLDoc->preserveWhiteSpace = VARIANT_TRUE;
pDOMProc = pXMLDoc->createProcessingInstruction("xml", "version='1.0' encoding='UTF-8' standalone='yes'");
pXMLDoc->appendChild(pDOMProc);
pDOMProc.Release();
pXMLElem = pXMLDoc->createElement("Listado");
pXMLDoc->appendChild(pXMLElem);
//
pXMLNodes = pXMLDoc->createElement("Msg");
pXMLNodes->setAttribute("ID", "1");
pXMLElem->appendChild(pXMLNodes);
pXMLNodes.Release();
//
pXMLElem.Release();
cout << "--- BOF ---" << endl;
string str = pXMLDoc->xml;
cout << str;
cout << "--- EOF ---" << endl;
str = "";
pXMLDoc.Release();
CoUninitialize();
cin.get();
return 0;
}
now the result is:
--- BOF ---
<?xml version="1.0" standalone="yes"?>
<Listado><Msg ID="1"/></Listado>
--- EOF ---
How do I convert it to..
--- BOF ---
<?xml version="1.0" standalone="yes"?>
<Listado>
<Msg ID="1"/>
</Listado>
--- EOF ---
Thanks
-- modified at 21:21 Sunday 25th September, 2005
|
|
|
|
|
Hello:
Can somebody tell me that whether it is possible to encrypt and decrypt data using CryptEncrypt and CryptDecrypt of windows API. And if it is then how.
|
|
|
|
|
'tvh' holds the handle of the TreeView whose items' text I want to grab. The TreeView is of another application currently running. I get its handle through Spy++.
Check this code:
<br />
int tvhi;<br />
tvhi = 0x000702A6;<br />
HWND tvh;<br />
tvh = (HWND)tvhi;<br />
<br />
HTREEITEM tvroot;<br />
tvroot = (HTREEITEM)SendMessage(tvh,TVM_GETNEXTITEM,TVGN_ROOT,0);
<br />
if(tvroot==NULL)<br />
MessageBox(hWnd,"err1","asdf",MB_OK);<br />
<br />
TVITEMEX itemobj;<br />
<br />
itemobj.mask = TVIF_TEXT;
itemobj.pszText = text;<br />
itemobj.cchTextMax = 256;<br />
itemobj.hItem = tvroot;
<br />
if(!SendMessage(tvh,TVM_GETITEM,0,(LPARAM)&itemobj))
MessageBox(hWnd,"err2","asdf",MB_OK);<br />
else<br />
MessageBox(hWnd,itemobj.pszText,"asdf",MB_OK);
Now I'm getting the "err2" messagebox. If I send any other message, like to get number of items in treeview or to delete all items in treeview, it works fine. But if I do this to get text of the item, the SendMessage returns false.
Can anybody help, please?
|
|
|
|
|
I am sure that what you want to do is possible using dll's and or some such method, but I have have no idea how. You may want to check here[^] or here[^].
The reason what you are trying does not work is because the address of the TV_ITEM structure you are passing has no meaning to the other app. Windows keeps the address spaces of seperate apps seperate.
"You're obviously a superstar." - Christian Graus about me - 12 Feb '03
"Obviously ??? You're definitely a superstar!!!" - mYkel - 21 Jun '04
"There's not enough blatant self-congratulatory backslapping in the world today..." - HumblePie - 21 Jun '05
Within you lies the power for good - Use it!
|
|
|
|
|
Dear all,
I want to open a mvc++ project using MVS 2003, everytime i try to do that i get the following message:
"The selected file is not a valid visual studio solution file"
The project i am trying to open, i have developed myself using MVS 2003. I am now trying to open it an another machine.
Any help would be very appreciated. I need to hand it in for correction tommorrow morning. I would value any comments
llp00na
-- modified at 12:32 Sunday 25th September, 2005
|
|
|
|
|
Make sure all service packs are installed
|
|
|
|
|
iv got c++ .net im trying to create a windows form in c++ I cant load a new project from the templates to do this which template should i load to be able to start playing with some code..
im a beginer at this...
any started code would be great to just to get me going...
thanks james....
|
|
|
|
|
I am trying to experiment eventually when i get better at using c++, creating finance equations and plotting them on a form using a constructed Chart in C++, Thats my aim...
Thanks James.
|
|
|
|
|
I want to internationalize my app and am planning to provide the language resources in their own DLL's.
What would be nice to happen would be to be able to call AfxSetResourceHandle() for the requested language DLL, thus causing MFC to search it for any resources, but if the resource was not found, then fall back to searching the EXE's resources. This removes the need to duplicate icons, bitmaps, etc. in each language DLL.
MFC maintains a list of CDynLinkLibrary's that it searches for resources but I'm having trouble finding out the correct way to insert an entry for the main EXE. Is something like this safe:
static AFX_EXTENSION_MODULE extn = { NULL, NULL } ;
BOOL rc = AfxInitExtensionModule( extn , AfxGetApp()->m_hInstance ) ;
ASSERT( rc ) ;
new CDynLinkLibrary( extn );
Or maybe even just this?
static AFX_EXTENSION_MODULE extn ;
memset( &extn , 0 , sizeof(extn) ) ;
extn.hModule = AfxGetApp()->m_hInstance ;
extn.hResource = AfxGetApp()->m_hInstance ;
new CDynLinkLibrary( extn );
Both seem to work OK but I'm worried that there are some hidden pitfalls in doing this.
The two most common elements in the universe are Hydrogen and stupidity. - Harlan Ellison
Awasu 2.1.2 [^]: A free RSS reader with support for Code Project.
|
|
|
|
|
Hi,
i am looking for fourier algorithm in VC++...if anyone can help me...plz it's very urgent...
|
|
|
|