|
This is plain wrong. This is not the way you allocate a SAFEARRAY.
For creating 1 dimensional array use the following code
SAFEARRAY FAR* psaArgs =SafeArrayCreateVector(VT_VARIANT, 0, size);
Next call SafeArrayLockData
VARIANT* rgVtVals = NULL;
SafeArrayLockData(psaArgs, (VARIANT**)&rgVtVals);
Then start filling rgVtVals
Finally unlock
SafeArrayUnlockData(psaArgs);
|
|
|
|
|
I could not find references to SafeArrayLockData or SafeArrayUnlockData -- did you intend for me to use SafeArrayAccessData and SafeArrayUnaccessData? Those seem to match the parameters.
--
Thanks,
Roy
|
|
|
|
|
Sorry yes I mean SafeArrayAccessData and safeArrayUnaccessData
|
|
|
|
|
I'm trying to get the wrox book samples working on my system:
http://www.wrox.com/ACON12H4.asp?WROXEMPTOKEN=160192ZjePJD4tgkFUWWDBumUS&ISBN=1861005644
I tried this at home on XP and at work on 2K and both of my machines produce the same error.
I can't figure out if it's an IIS configuration problem or a code problem (is an assembly requred?)
Can anyone get these samples to work?
I get the following errors when trying to run the Chapter01\CompositeControl.aspx sample:
Server Error in '/aspsc' Application.
--------------------------------------------------------------------------------
Parser Error
Description: An error occurred during the parsing of a resource required to service this request. Please review the following specific parse error details and modify your source file appropriately.
Parser Error Message: File or assembly name CompositeControl, or one of its dependencies, was not found.
Source Error:
Line 1: <%@ Register TagPrefix="Custom" Namespace="CompositeControl" Assembly = "CompositeControl" %>
Line 2: <%@ Page Language="c#" Debug="true" %>
Line 3:
Source File: F:\alchdev\Professional ASP.NET Server Controls - Building Custom Controls with C#\Chapter01\CompositeControl.aspx Line: 1
Assembly Load Trace: The following information can be helpful to determine why the assembly 'CompositeControl' could not be loaded.
=== Pre-bind state information ===
LOG: DisplayName = CompositeControl
(Partial)
LOG: Appbase = file:///F:/alchdev/Professional ASP.NET Server Controls - Building Custom Controls with C#
LOG: Initial PrivatePath = bin
Calling assembly : (Unknown).
===
LOG: Policy not being applied to reference at this time (private, custom, partial, or location-based assembly bind).
LOG: Post-policy reference: CompositeControl
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/aspsc/52a1ba08/5db97123/CompositeControl.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/aspsc/52a1ba08/5db97123/CompositeControl/CompositeControl.DLL.
LOG: Attempting download of new URL file:///F:/alchdev/Professional ASP.NET Server Controls - Building Custom Controls with C#/bin/CompositeControl.DLL.
LOG: Attempting download of new URL file:///F:/alchdev/Professional ASP.NET Server Controls - Building Custom Controls with C#/bin/CompositeControl/CompositeControl.DLL.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/aspsc/52a1ba08/5db97123/CompositeControl.EXE.
LOG: Attempting download of new URL file:///D:/WINNT/Microsoft.NET/Framework/v1.0.3705/Temporary ASP.NET Files/aspsc/52a1ba08/5db97123/CompositeControl/CompositeControl.EXE.
LOG: Attempting download of new URL file:///F:/alchdev/Professional ASP.NET Server Controls - Building Custom Controls with C#/bin/CompositeControl.EXE.
LOG: Attempting download of new URL file:///F:/alchdev/Professional ASP.NET Server Controls - Building Custom Controls with C#/bin/CompositeControl/CompositeControl.EXE.
--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:1.0.3705.209; ASP.NET Version:1.0.3705.0
Todd Smith
|
|
|
|
|
I had my control in a subdirectory of the web root
\webroot\test\bin\mycontrol.dll
\webroot\test\mycontrol.aspx
That gave me the following error
File or assembly name MyControl, or one of its dependencies, was not found.
To fix it all I had to do was move the \bin dir to the root
\webroot\bin\mycontrol.dll
\webroot\test\mycontrol.aspx
and it worked!
Todd Smith
|
|
|
|
|
With all this emphesis on .NET and the internet. Why is there not class in the new .NET Framework to parse HTML tags?
|
|
|
|
|
well, if you use xhtml, you can just use the built in xml namespace.
otherwise, you could use com interop to talk to ie.
|
|
|
|
|
Ok, I built a test web service using VS.NET. How do I call the web methods within this service remotely? I want to call the service from a machine with no .NET Framework or IDE installed.
Previously I used Microsoft's SOAP Toolkit to create a web service from an existing com object. It was easy to call the service in vb script by creating a soap client object, all I need to know was the url of the .wsdl file for the service.
But there is no .wsdl file in my .NET web service project. How do I access this service? Please help.
Thanks.
|
|
|
|
|
You can use the SOAP toolkit for this also.
You access the WSDL by sticking ?WSDL onto the end of the URL
e.g. http://localhost/webservice.asmx?WSDL
Dave.
|
|
|
|
|
Thanks. I already tried that. The problem is, SOAP toolkit doesn't seem to be compatible with .NET web service. I always got an error saying something like "SoapPort failed, etc.".
|
|
|
|
|
Not sure it this is what you are looking for, but you could invoke web service method(s) via HTTP GET or POST.
Mike M
WinInsider.com
|
|
|
|
|
Hi
Is it Possible to Create a Setup From VS.Net , to Setup the .Net Fram work it self?
Thanks.
Gaurika.
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
If you are familiar with Windows Installer (.msi files) there is a merge module you can use to install the framework.
Unfortunately, I'm not familiar with Windows Installer so I have no idea what you do with it
James
Simplicity Rules!
|
|
|
|
|
Wht is the Fastest from vb.net, c# and Managed C++ ?
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
If I remember correctly Managed C++ is just a smidge faster than C#; C# and VB.NET are about the same after JIT, but VB.NET produces a lot of no-op IL opcodes, which get compiled away.
James
Simplicity Rules!
|
|
|
|
|
Thanks James
What is no-op ?
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
Its an instruction to do nothing.
I'm not sure of Intel processor's but the Sparc requires nop (the sparc name for no-op) before you do any branching (ie goto).
James
Simplicity Rules!
|
|
|
|
|
Thanks..
Gaurika Wijeratne. // www.gaurika.com
|
|
|
|
|
Does anyone know the value for the second parameter that is required when calling Documents.Open from the VSNet Object model? MS have made the second parameter a String to describe the Kind of document being opened (Enum anyone?) but I can't find any documentation on what the value should be. Empty string and null string both cause a " The Parameter Is Incorrect" exception to be thrown.
if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk))
{
// I aint no pUnk bitch!
}
|
|
|
|
|
Duh.
Tried "Text" and it worked. Anyone got any common sense they could lend me?
Steve.
if(E_NOINTERFACE == pThat->QueryInterface(IID_IUnknown,(void**)&pUnk))
{
// I aint no pUnk bitch!
}
|
|
|
|
|
Hello,
Is the concept of n-tier architecture same in .NET? If yes, what is the substitute of COM in .NET framework or the COM will work the same way as it is working now? Can anyone provide me with some links where I can find about developing n-tier applications using .NET?
Thanks in advance
Hitesh
|
|
|
|
|
Search along this links:
Building Distributed Applications with .NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/entserv.asp
Understanding Enterprise Services (COM+) in .NET
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dndotnet/html/entserv.asp
The .NET Show: Application Architecture
http://msdn.microsoft.com/theshow/
Andres Manggini.
Buenos Aires - Argentina.
|
|
|
|
|
I have a project that works properly in VC6++. I converted this project to VC++ 7, but this project did not link: "error LNK2001: unresolved external symbol "protected: static struct AFX_MSGMAP const CWnd::messageMap" (?messageMap@CWnd@@1UAFX_MSGMAP@@B".
Any clue?
|
|
|
|
|
Do you "have use in MFC" option properly set in the project options? I suspect that it is set to "Not using MFC" for some reason.
|
|
|
|
|
I checked the project settings: Configuration Properties -> General -> Use of MFC: Use MFC in a Shared DLL.
I think there is no problem with the MFC settings...
|
|
|
|