|
Roger Stewart wrote:
Change
Chris Morrison wrote:
private: SHDocVw::InternetExplorer m_IExplorer;
m_IExplorer = new SHDocVw::InternetExplorer();
To
SHDocVw::InternetExplorerClass* ieForAutomation;
ieForAutomation = new SHDocVw::InternetExplorerClass();
Thanks Roger, I just cracked it by looking though the MSDN Library. Thank you for that link as well, that sample should come in very handy.
Kind Regards,
Chris
|
|
|
|
|
i am not able to add a reference from the project menu.
|
|
|
|
|
In the "Add Reference" dialog (_not_ "Add Web Reference"), on the ".NET" tab, scroll down and select "System.Web.DLL". Add it to the project references by clicking the Select button, then OK.
Alternatively, you can manually identify references to the compiler in code with #using, or on the command line with the "/FU" flag.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
http://www.codeproject.com/shell/shellextguide1.asp
class ATL_NO_VTABLE CSimpleShlExt :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CSimpleShlExt, &CLSID_SimpleShlExt>,
I don't know what this function is inheriting. I have only seen these used in templates. Can I get some help or reading material or a better phrase to search under?
Thanks
|
|
|
|
|
it's for templating.
a quick look at msdn shows
template< class ThreadModel> class
for
CComObjectRootEx .
templates are extremely useful if you have a class or function that should take in more than one object type (like a string, or an int...it saves the time of having to write multiple instances of code to handle different containers.)
check out templates on msdn.
*.*
cin >> knowledge;
|
|
|
|
|
ok, so I am inheriting only specific functions then, and these functions are templated?
|
|
|
|
|
Dear viewers !
This is Sardar Ahmed Bilal doing BCS(Hon) from AMI Iqra University Peshawar Campus. And want your help to make a good interactive Project(Software) for the User's for our university like let say a Keyboard(its an example), and for that i want your suggestions and codes help and some description also with your code about that code to help me out coz i completed my C++(Part-1->Fundantals, & Part-2->Object Oriented Programming Language) in the third Semester and right now i have forgotten almost all of it but still i can do it by the hepl of you people so plz help me out, THank You, Bilal
|
|
|
|
|
Hi folks,
I have an MFC project and I wrapped it by Managed C++. This project works well. But there is something that annoys me. I tried to see the assembly generated by Managed C++ in .NET object browser. I saw some other stuff except for my classes and namespaces have been exposed to the object browser that's not good. Is there any way to hide these unnecessary components from assembly so that they do not show up in object browser?
Please advise me. Thank you.
Arash
Arash Sabet
Computer Engineer
E-mail: afifi@sympatico.ca
|
|
|
|
|
Change the accessibility of the members you don't want to be visible or accessible outside of the assembly. I.e. "public" to "private" or "private public".
A common one is the destructor of a managed object. Set its accessibility to "private public" to make it accessible only within the scope of the assembly.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
Implement the following C routine permission(inode,mask) – this routine checks whether a specified access mode is allowed for the file associated with an inode.
|
|
|
|
|
Why the return type doesn't have significance in function overloading. What might be reason in compilation designing for this issue.
Maruthi
|
|
|
|
|
I have an assembly that I built in C# and I wanted to be able to use it in an extended stored procedure. Does anyone know if this is possible? Thank you very much for your time.
|
|
|
|
|
I have a HID device (magnetic cardreader) that uses a usb port to connect to a computer running any version of windows. I want to be able to figure out what port the device is on and read information from it. I know I need to use the Win32 API, but I haven't been able to find any useful information on how to do this. Can any one help?
Thanks in advance.
|
|
|
|
|
I would start by looking at the work Camilo Toro has done. He has wrapped the needed portions of Win32 in a C# class. You'll be able to do what you want without writing much code at all. His work, called USBSharp, can be found on Jan Axelson's HID Page[^]. (Jan is the author of USB Complete, a great book to wet your taste buds.) For more details, look at the rest of Jan's site, the MS DDK, and MSDN of course.
Hope this helps,
Chris
|
|
|
|
|
Thanks for the link. I could have used that a few years ago when I was trying to have 2 independent usb mice...
John
|
|
|
|
|
I create dialog to load bitmap file and I change file a little.I create dialog to save file but I don't know code that can save bitmap image.
Could u tell me ?
|
|
|
|
|
I think you are talking about this:
Class CBitmap has the method Save. It's overloaded in five constructors.For instance one of them get the parameters --- pBitmap::Save( System::String__gc , System::Drawing::Imaging::ImageFormat__gc)
where in the string you put a name for saving the file ( actually you put whole path ), and in the second one you specify the requiered format that you want for this saved image.
Yes it's so simple to save your new bitmap as Gif, Tiff, JPeg, Icon and so on.
For instance you can use this function in this way:
{....
System::String * mark = S"\\";
//We open an openFileDialog in our form, we suppose that are
//filtered for only show BMP files.
System::Windows::Forms::OpenFileDialog * openFileDialog1 = new System::Windows::Forms::OpenFileDialog();
openFileDialog1->ShowDialog();
//We get the selected file path
String* strResult = openFileDialog1->FileName;
System::Drawing::Bitmap * pBitmap;
//and open it in our Bitmap
pBitmap = new System::Drawing::Bitmap( strResult);
//We search the last '\' in the path for change the name of the file and
// the extension
int Index = strResult->LastIndexOf (mark);
strResult = strResult->Substring(0,Index);
strResult = strResult->Concat(strResult,S"\\ITS_OK.jpg" );
//finally you can save it with your new desired format (or the same one)
pBitmap->Save(strResult, System::Drawing::Imaging::ImageFormat::Jpeg );
}
if your question is in another way, please reply me.
Best Regards!
|
|
|
|
|
Hi
Im try to get the icq api to work in c# but i trapped into a big problem.
The dll-function:
ICQAPICall_GetOnlineListDetails
BOOL WINAPI ICQAPICall_GetOnlineListDetails(int &iCount, BPSICQAPI_User **ppUsers);
In (Arguments): None
Out (Returns): iCount, ppUsers
iCount - the number of Users to follow
ppUsers - a pointer to the users’ array.
Description: The data returned is in the order of the online list, top to bottom. The users array is initialized with the user’s ICQ# (m_iUIN field) and the Window Handle (m_hFloatWindow) if the user is “floating”. The users array should be freed by calling ICQAPIUtil_FreeUsers to free each user structure and the array itself.
The iCount Parameter i get correctly with passing "out iCount" to the function (it will return the exact count), but the array gets size 1 and consists garbage. I used this:
[MarshalAs(UnmanagedType.LPArray)]
BSICQAPI_User[] ppUsers //its a array of structs.
It doesnt matter if i do ref or not in the function header.
Does somone know how i can get the right parameter for BPSICQAPI_User **ppUsers ?
THX
sorry for my bad english
|
|
|
|
|
Oh damn wrong forum....can someone move to c#´?
|
|
|
|
|
Hey all, is anyone out there attempting to wrap the winXP p2p sdk in some type of managed dll so that it can be more easily used in a .Net project? I'm working on it (slowly) but would love to give it up if someone else has done this already.
|
|
|
|
|
I’m going to create a collection having records of derived CObjects. I’m will store a lot (about 10000) of records in it and will very often make searches to find one ore more records (I will allow duplicates). Filling the collection will be made only once and I will never delete any record.
Need suggestion of witch structure I should use.
Now I’m using CArray, which I know is not the best at this problem.
Do you prefer for eg. the stl array before CArray and why?
Thanks - APe
APe
|
|
|
|
|
Hey all,
I want to begin learning ATL/WTL and wanted to get a good compiler, what will I need from here ( http://www.borland.com/products/downloads/download_cbuilder.html ) or other places?
Thanks for your time,
C.
|
|
|
|
|
In addition I guess I am looking for libraries to include, is this possilble?
Thanks again,
C.
|
|
|
|
|
You need Visual C++ for ATL/WTL, not the borland tools, for GUI programming etc Borland C++ uses VCL.
Signature under construction.
|
|
|
|
|
Hello,
I am having a little problem....everytime I try to change the default application icon in the properties window for an MC++ .NET form, I get an error message saying that GetObjectA() is not a member function of System::Resources.....this error (oddly enough) occurs in the InitializeComponent() function...something I have never modified (per the warning message above it). Has anyone else seen this problem? If you need more info, I can re-create it and send the exact error message.
-T
|
|
|
|