For those new to message boards please try to follow a few simple rules when posting your question.
Choose the correct forum for your message. Posting a VB.NET question in the C++ forum will end in tears.
Be specific! Don't ask "can someone send me the code to create an application that does 'X'. Pinpoint exactly what it is you need help with.
Keep the subject line brief, but descriptive. eg "File Serialization problem"
Keep the question as brief as possible. If you have to include code, include the smallest snippet of code you can.
Be careful when including code that you haven't made a typo. Typing mistakes can become the focal point instead of the actual question you asked.
Do not remove or empty a message if others have replied. Keep the thread intact and available for others to search and read. If your problem was answered then edit your message and add "[Solved]" to the subject line of the original post, and cast an approval vote to the one or several answers that really helped you.
If you are posting source code with your question, place it inside <pre></pre> tags. We advise you also check the "Encode "<" (and other HTML) characters when pasting" checkbox before pasting anything inside the PRE block, and make sure "Use HTML in this post" check box is checked.
Be courteous and DON'T SHOUT. Everyone here helps because they enjoy helping others, not because it's their job.
Please do not post links to your question into an unrelated forum such as the lounge. It will be deleted. Likewise, do not post the same question in more than one forum.
Do not be abusive, offensive, inappropriate or harass anyone on the boards. Doing so will get you kicked off and banned. Play nice.
If you have a school or university assignment, assume that your teacher or lecturer is also reading these forums.
No advertising or soliciting.
We reserve the right to move your posts to a more appropriate forum or to delete anything deemed inappropriate or illegal.
i have some .swf decompiled and i can see all the .as files in it.
so now i want to edit some variable in for example i want to edit the variable "x" in main.as
so i loaded the swf and when i want to setVariable I get the error:
"Error HRESULT E_FAIL has been returned from a call to a COM component."
you know how can I get the variable and change it?
I am writing a middleware library in .Net which will be invoking Web services and respond back to VB6 legacy applications with the service output.
So far I have made the assembly as ComVisible without generating strong-name for it.
The .Net dll will be used to generate a type library (.tlb) which can be added in Project References of the VB6 application and used to invoke the services.
Using regasm tool, the TLB file is generated fine and registered to the local registry.
I first registered the TLB from local system drive and everything worked fine.
Now the system constraint is that, the assembly and type library cannot be stored in end-user machines.
So I need to map to a network drive and register the TLB from there.
The regasm tool registers it from network drive also, but the VB6 application is not able to access the classes in .Net
I just can't seem to get this right.
I have a Com Class written in VB.Net that brings up a form where users can enter information.
I have a delphi program that opens this class and it shows the form fine.
The problem I have is with events raised in the Com Class. It just does not get fired in delphi, although I can assign it to a procedure.
IE9 loads a com activex, when an activex method is called, in the method it launches another com exe (registerless using manifest), cocreates and get the interface pointer then calls a method of that interface.
I am able to launch, cocreate and get interface pointer but when the method of that interface is called the following error is returned. "The group or resource is not in the correct state to perform the requested operation"
I am trying to load the
.txt file specified in the first parameter of the OpenText API
And for some reason I get the feeling the source of the error
Is its not finding the file
I tried various variations on the file name as just specifying the file and having it in a directory
That's in the path variable but I still get the same error
I have not managed to find a decent explanation for either of the error codes you received. All I can suggest is that you test with a Unicode and ASCII version of the string, and be sure that the path to the file is correct.
I'm trying to solve one problem with custom cred.prov. on win8.
The problem is that if you select any tile (e.g. my, custom) and you have CPUS_UNLOCK_WORKSTATION scenario - Logonui will dismiss it automatically after 1 minute. This is not relevant to CPUS_LOGON scenario. Selected tile will stay untill user press Ok or Cancel buttons.
So I'd like to ask, maybe somebody has worked with such thing already, is it possible to handle that moment when selected tile is going to be dismissed.
using debugging I found that IConnectableCredentialProviderCredential::SetDeselected() is not called when IConnectableCredentialProviderCredential::SetSelected() is called by selecting the tile.
To create and an Automation When I got the Class wizard I selected Create Class from typelib
I the selcted the excel.exe
The Wizard create a number of Class I slected to include all of them in my project
After getting a Clean build I decided to add some ole code
So I included "CAppliction.h"
I coded CApplication app;
however I got a whole slew of build errors
c:\users\4rypb\documents\visual studio 2010\projects\autoproject\autoproject\debug\excel.tlh(1595): error C2371: 'FontPtr' : redefinition; different basic types
1> c:\program files\microsoft visual studio 10.0\vc\include\comdef.h(314) : see declaration of 'FontPtr'
c:\users\4rypb\documents\visual studio 2010\projects\autoproject\autoproject\capplication.h(3): warning C4278: 'RGB': identifier in type library 'C:\\Program Files\\Microsoft Office\\Office14\\EXCEL.EXE' is already a macro; use the 'rename' qualifier
i am working for windows 8 wrapped credential provider .i did every thing in document which is provided by Microsoft .i implemented ICredentialProviderCredential2 interface with GetUserSid(__deref_out PWSTR *ppszSid) method,i am able to get sid .but my credential provider showing like other user tile ,but widows default credential showing password text box only,why my credential showing username text box and password text box. please help about this
my dll is custom credential provider .this dll provide a link in windows logon screen,this link will display win32 dialog with custom control.this is working for windows 7 32&64 bit and windows 8 32bit.but 64 bit windows 8 every thing is coming fine dialog only not displaying .
Problem is this || IID_ICredentialProviderSetUserArray when i call IID_ICredentialProviderSetUserArray interface through Quareyinterface dll is crashing without implementing ICredentialProviderSetUserArray interface dll is working is fine .
CSampleCredential **_rgpCredentials; // Pointers to the credentials which will be enumerated by this
ICredentialProvider *_pWrappedProvider; // Our wrapped provider.
DWORD _dwCredentialCount; // The number of credentials provided by our wrapped provider.
DWORD _dwWrappedDescriptorCount; // The number of fields on each tile of our wrapped provider's
ok but that is not problem when i called ICredentialProviderSetUserArray ==riid probblem is occurring
if (IID_IUnknown == riid ||
IID_ICredentialProvider == riid ||
Are you certain that the old object is not getting out of scope when you create new. When you create multiple objects, chances are that you are not maintaining reference counts correctly so there is a small chance that object is actually removed or marked for removal when client attempts to access ...
But for e.g. HrIsProtected() I need to provide an implementation of ILockBytes. Has anybody experience how to correctly implement ILockBytes in managed code? I am a bit at a loss as to what is expected here.
For unmanaged code I found a sample that uses CreateILockBytesOnHGlobal(). This returns an unmanaged instance of ILockBytes. Is there any chance of using this unmanaged instance from managed code (probably not...) or marshalling it into a managed structure? Or is there a similar method for C#? In that case I wouldn't have to implement ILockBytes, which would save me a lot of time.
Of course, I could implement this part in unmanaged code, but I'd prefer a solution in managed code, if possible...
Does any one knows how to compile COM for VB6, my application contain one .Fig file as interface and .m file containing code and
one Excel file for data.
My problem is how to compile all together in dll which i can call
Djamel AIT AMRANE
Last Visit: 31-Dec-99 18:00 Last Update: 16-Apr-14 2:54