|
Hello,
Friends i am new in VC++.Net. I want to know hot to
set assembly version. i.e. How to set or change version number of the
dll generated by the VC++.Net project.
Thanks in advance.
Rahul Kulkarni
|
|
|
|
|
Well there is a better chance that someone will answer this in .NET forums
Don't believe everything you think.
|
|
|
|
|
When creating a .NET Assembly:
set the
[assembly:AssemblyVersionAttribute("1.0.*")];
meta attribut.
It is usually in the generated assemblyinfo.cpp.
When building a Win32 Programm:
Insert a VersionInfo in Resouce View
|
|
|
|
|
Hi all,
As a part of my project I am trying to get data from a URL , for example "www.mypage.com/data.htm"
Is there any function available in VC++ , so that I can give my URL
as an input string and get the Content of the page as a CString .
Please Help me ,
Thanks in Advance
George
|
|
|
|
|
You might be in luck
BOOL GetWebContent(LPCTSTR szURL, CString &strData)
{
strData = "";
HINTERNET hConnection = InternetOpen("Microsoft Internet Explorer",
PRE_CONFIG_INTERNET_ACCESS,
NULL,
INTERNET_INVALID_PORT_NUMBER,
0);
if (hConnection == NULL)
return FALSE;
DWORD dwSize;
CHAR szHead[] = "Accept: */*\r\n\r\n";
char *szbuf;
HINTERNET hConnect;
if (!(hConnect = InternetOpenUrl(hConnection,
szURL,
szHead,
lstrlen(szHead),
INTERNET_FLAG_DONT_CACHE,
0)))
{
InternetCloseHandle(hConnection);
return FALSE;
}
BOOL bReadInParts = FALSE;
DWORD dwNumberOfBytes = 0;
if (InternetQueryDataAvailable(hConnect,
&dwNumberOfBytes,
0,
0)){
if (dwNumberOfBytes < 0){
bReadInParts = TRUE;
}
else{
szbuf = new char[dwNumberOfBytes+1];
if (!InternetReadFile(hConnect, szbuf, dwNumberOfBytes, &dwSize)){
bReadInParts = TRUE;
}
if (dwSize < dwNumberOfBytes+1)
szbuf[dwSize] = '\0';
strData = szbuf;
delete []szbuf;
}
}
if (bReadInParts){
szbuf = new char[512];
do{
if (!InternetReadFile (hConnect, szbuf, 512, &dwSize)){
return FALSE;
}
if (!dwSize)
break;
if (dwSize < 512)
szbuf[dwSize] = '\0';
strData += szbuf;
} while(1);
delete []szbuf;
}
InternetCloseHandle(hConnect);
InternetCloseHandle(hConnection);
return TRUE;
}
I don't believe in failure. It is not failure if you enjoyed the process.
|
|
|
|
|
Hi Monty,
Its working wonderfully , Thank you very much for ur code.
Thanks
george kj
|
|
|
|
|
Hi Monty,
I tried your code and its working fine but for every url it is not fetching complete data(only 5% of the desired data) so please can you tell me that where could be the problem.....
Thanks A Ton
Ash_VCPP
|
|
|
|
|
Do you want to read objects on thml file like(links,buttons,...)?
|
|
|
|
|
Hi Whitesky,
Thankyou very much for ur response, I need only data , means text embedded in a url,
Thanks
George K J
|
|
|
|
|
Check out URLDownloadToFile()
|
|
|
|
|
Dear All,
I need to do Sysdm Tray Icon. How do i do this ?
Kindly help me .
Thanks
|
|
|
|
|
|
|
Is it possible to read data from the transmit and receive buffer of serial port. I'll be sending some data to the Tx line and the hardware will be sending response to the Rx line. How can I monitor both the data from the Tx & Rx line. We'll be using the same port to write to Tx line and monitor both lines. Is it possible ?
|
|
|
|
|
Have a look at PortMon[^].
PortMon will log all IRP's to the driver and the data sent/received.
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Its not possible to read and write from the COM port at the same time, only one operation is supported at one time.
Gas prices suggest that they have taken out lead from gas and replaced it with gold
|
|
|
|
|
Can I monitor immediately after writing to the port..Can I read data from the Tx line.
|
|
|
|
|
By using GetModuleFileName() in MFC gives exe path of the application,
But in ATL also gives exe path of the Explorer(like c:\windows\explorer.exe)
But now i want if am running the application from d or e drivesit will give drive D or E
plz help me out
|
|
|
|
|
|
for exam my application is at D:\Work\ATLApplication,
Now i want retrive the drive D, through my ATLapplication
|
|
|
|
|
Don't use NULL as the first argument to GetModuleFileName() .
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
what can i put instead of NULL?
|
|
|
|
|
See here. The handle comes to you in the DllMain() function of your DLL. If you don't have access to DllMain() , you might also be able to use GetModuleHandle() to get the DLL's handle.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Hi all,
I am working on Outlook Addin using vc++. I am facing problem to the get_Subject or GetSubject method . Please give me the solution for this I have given the code snippet below....
Thanks In Advance..
CComQIPtr<Outlook::_Application>Application; <br />
CComPtr<Outlook::_Explorer>pExplorer; <br />
CComPtr<Outlook::Selection>pSelection; <br />
CComQIPtr<Outlook::_MailItem>pMailItem; <br />
char *str=new char[100]; <br />
IDispatch *pDispatchItem; <br />
CComVariant covIndex;<br />
BSTR subject; <br />
<br />
pExplorer =Application->ActiveExplorer(); <br />
pSelection=pExplorer->GetSelection();<br />
covIndex.vt = VT_I4 ;<br />
covIndex.lVal =1;<br />
pDispatchItem=pSelection->Item(covIndex); pMailItem=reinterpret_cast<_MailItem *>(pDispatchItem); <big>pExplorer->get_Subjet(&subject); <br />
str=_com_util::ConvertBSTRToString(subject);
The secret of life is not enjoyment
but education through experience.
- Swami Vivekananda.
|
|
|
|
|
Most probably the statement pExplorer =Application->ActiveExplorer(); has not succeeded .
Try
if(pExplorer)
pExplorer->get_Subjet(&subject); // exception at this statement
And if the if statement failes , then rewrite the allocation code as
while(pExplorer!=NULL)
{
pExplorer =Application->ActiveExplorer();
}
These problems arise mostly in plugin codes becasue , plugin try to use the default memory allocated for the application to which this plugin is intended (here outloook exe)
redindian
|
|
|
|