|
Hi,
I'm developing an extended stored procedure using the native C++. The
mentioned xp is supposed to create a dataset and archive the related data.
You know, to develop an xp, you've to export a function in your DLL file, a
function that receive a pointer of SRV_PROC as its formal parameter.
The question is that how can I pass the mentioned pointer (SRV_PROC *) into
the managed C++. Since, there's no documentation about the subtle nuances of
how SRV_PROC is defined, I cannot also use the Marshal::PtrToStructure
function.
It would be highly please if you could help me on this.
Mehdi Mousavi - Software Architect [ http://mehdi.biz ]
|
|
|
|
|
What happens is that i made a application on my home computer, when i borught it to my friend's house, and after installing the same .net framework there, application was just messed up...all forms and controls there were messed up...the location and size argument was changed
sam problem happened to me when I reinstalled my windows...i put same win version XP SP1a, same Visual Studio .net 2003, and same .net framework 1.1...but the forms are now just fuc*ed up, no matter i start the already compiled exe, or I open the project for editing from VS...
please help me...don;t know what to do...
how to fix this problem...?
P.S. I'm writing in C#...
|
|
|
|
|
just check whether u r using any 3rd party components. That may be the reason for ur problem
cool man
|
|
|
|
|
Can any one tell me how to use Amazon.com web service in C# application ?
thanks in advance
|
|
|
|
|
Hello,
In Visual Studio, add a web reference using the WSDL reference. Double-click the reference in the Solution Explorer and expand amazon.com.amazon.soap in the Object Browser to marvel at the abundance of classes you can now use.
Links: http://www.amazon.com/gp/browse.html/002-8365931-7808843?node=3435361
cheers
|
|
|
|
|
I certainly can use FieldInfo to see the root objects fields and data, but then I need to move into the contained object. Thats where I am stuck.
Type t = o.GetType();
FieldInfo[] fi = t.GetFields();
foreach (FieldInfo field in fi)
{
Console.WriteLine("Field: {0}\tType: {1}", field.Name, field.FieldType);
}
But, now....how to reflect into the "fields"?
These might be collections (Hashtables, ArrayLists, etc.) and/or other complex objects.
Basically, I want to create an object model viewer and put it in a tree view.
Tony
Tony
|
|
|
|
|
Does the restriction for calling controls from threads outside the thread in which they were created, the parent form thread, apply to custom components as well?
If the answer is yes, is this documented any where? I'm having a hard time finding it.
The reason I ask is that I get some weird behavior if I call the methods in a custom component outside the thread in which it was created.
|
|
|
|
|
should always use a delegate if changing something form another thread
|
|
|
|
|
Hi everyone,
I have a problem and im not sure if it's because visual studio is a buggy piece of crap or what. Anyhow its pretty straight forward. I am creating a web application, and dropping my web control on the aspx page. The problem is that when i run the page and click the button, an event is fired and in turn executes the code in the Click event block, but this is not the case. So im wondering what the hell is happening here. What i did was simple. In the .aspx file, i manually modified the following line
<asp:imagebutton>id="blah" runat="server" onClick="btn_submit_Click">
the onClick property is exactly how the studio created it in the .cs file when i dropped the image control. Finally I had to change the signature of the event function from private to protected since the aspx is inherited from the aspx.cs file. Does anyone have any idea why that happens. I have been developing with .NET for some years now and had this happen to me for the first time.
|
|
|
|
|
Guyz,
help me!!
I am creating a .net 2003/ATL COM dll, and am including some header files of the legacy application. Now am getting some great compilation errors:
[B]error C2146: syntax error : missing ';' before identifier 'int_type'
error C2838: 'int_type' : illegal qualified name in member declaration[/B]
These error belongs to the following code snippet in my legacy .h file
typedef Base::int_type int_type;
another error:
[B]error C2226: syntax error : unexpected type 'T'[/B]
this belongs to :
template <class t="">
class CAfwASOFileSet
{
public:
CAfwASOFileSet(T* aso, T::_FsdFileSets fileset) :
........
Any idea guyz?!
I desperately need a solution!
Pl help me
Thnx!!
|
|
|
|
|
Hi
I'm having some problems understanding how to create .NET menu shortcuts, if they are too "complex" to members of the Windows::Forms::Shortcut Enum.
(see See link on MSDN)
For example - "Ctrl+Z" is Windows::Forms::Shortcut::CtrlZ but "Alt+Z" is not a member so I don't know how to assign it.
How do you change this MFC line of code to the shortcut "Ctrl+Alt+Right" ?
VK_RIGHT, ID_GOTO_SYNC_TARGET, VIRTKEY, CONTROL, ALT, NOINVERT
|
|
|
|
|
Me again
Found a way to do this using the KeyEventArgs Class, and check every possible combination of keys I link to every time a key is pressed
Does anyone know a better way?
If not - does anyone know how to do this without overriding the Windows::Forms::Shortcut stuff?
That is, check if the "KeyPress" evaluates to a menu shortcut not in the Windows::Forms::Shortcut Enum (e.g. "Ctrl+Alt+Z") and if not - use the Windows::Forms::Shortcut (e.g. "Ctrl+Z").
Comments - anyone ?
|
|
|
|
|
This is a question about this error I got when I converted from VC6 to VC.NET. Apparently though the tooltip tells me there is an overloaded function that takes 8 parameters so I'm rather confused as to why this error crops up?
thanks!
|
|
|
|
|
|
i am trying to configure the c++.net with directshow. when i build my application i got linking errors. i know i have to set property pages of C++ project which i did. i did put the path for my directx sdk in additional include directioies but i have to put the path for the libraries in the linker . i don't know which path i have to put there. is it the same????
prashant
|
|
|
|
|
hello,
now I have a problem.
If you can some solutions, please tell me.
I develop a tool using C#.
I tried to get and use object in main thread from sub thread, I could do. The sub thread created using Thread class.
I changed object value in main thread, I tried to get and use new value. I thought sub thread get changed value.
But sub thread couldn't get changed value.
I tried to use Monitor class, timer class etc, but I couldn't
solve this problem.
thank you in advance for your kindness.
yu-yu,
|
|
|
|
|
hello.
thank you.
This object define static variable, I could do.
|
|
|
|
|
Hi Friends
I have a console application that produce assembly in .EXE. This app has some dependency assemblies which it reference in the project.
Now i want to give my client only the .EXE file. So i want to statically link the dependency assemblies in this .EXE .
The Assembly Linker tool(al.exe) only links the modules or the resource files.
Any pointer and idea is most welcome.
Thanx a lot
Naveen
|
|
|
|
|
Hi there,
does anyone have a good suggestion of how to implement a martix, where users can check/uncheck values...
It should be just like the Permissions Tab in SQL Server 2000 Administration, where you can grant several rights to several users - including those groovy Icons everywhere.
I could not find a sutiable control in VS2003
Thanks
|
|
|
|
|
Hi, all!
It seems like my company will jump on to the .Net train in a not too distant future. I thought I should be as prepared as possible and so wondered what I should read to get up to speed as fast as possible.
I will (of course) use the CP articles, but I simply wonder if there are any books considered to be the Petzold(s) of .Net (OK, I know he has written a corresponding .Net book, but I was referring to the old, straight Win32 API bible, which I loved).
I am fluent in the Win32 API world, so I don't mind a book that only briefly covers the basics and rather soon ramps up to heavier stuff.
Any suggestions?
--
The Blog: Bits and Pieces
|
|
|
|
|
The Petzold book is very good. Not as good as his Win32 book but covers all the basics of .NET development.
Inside C# by Tom Archer is a good book on the ins and outs of C# the language.
Michael
CP Blog [^]
|
|
|
|
|
Hi community!
In a VS.NET Setup Project you can add project outputs to your setup. There are different types of output (primary outputs, contents, ...) available but they're not really well-documented.
Ok, primary outputs are the exe's and dll's, contents is everything marked as "contents" via the build action, but I couldn't find any description of "documentation files" and the other output types.
What kind of files are considered "documentation files" (.chm seems not to be one of them) and how can they be added to a project?
Does anyone have an explanation for me?
Thanks in advance,
mav
|
|
|
|
|
I think that documentation files refer to the source code documentation generated using 'Build Comment Web Pages' under the 'Tools' menu in Visual Studio.
I would have thought that a .chm file would be considered a content file.
|
|
|
|
|
Could be, that's one of the few things I didn't try
Meanwhile, I have included the .chm file as contents, since it fits this category as well...
Thanks,
mav
|
|
|
|
|
From various sources I believe the declaration should be...
Declare Function GetUserObjectInformation Lib "User32" Alias "GetUserObjectInformationA" (ByVal hObj As Integer, ByVal nIndex As Integer, ByRef pvInfo As Object, ByVal nLength As Integer, ByRef lpnLengthNeeded As Integer) As Integer
However, I keep getting 'Specified OLE variant is invalid' when I try to call the routine. I've found various samples for using this call from C and even one from VB but none from VB.net. Does anyone know how I should be picking up the pvInfo parameter?
Here's what I'm doing now...
Dim InputDesktopName(256) As Byte
Dim InputDesktopNameLength As Integer
Dim UOI_Name As Integer = 2
Dim x As Integer
...
x = OpenInputDesktop(0, False, 0)
GetUserObjectInformation(x, UOI_Name, InputDesktopName(0), 256, InputDesktopNameLength)
It's returning InputDeskTopLength OK so I'm pretty sure I've got the pvInfo parameter wrong.
Andy Henderson
|
|
|
|