|
Hi All,
I just findout a special button control: AquaButton for .NET for my application. I think it's really cool.
http://www.econtechvn.com/en/aquabutton_detail.htm
But anyone tried this before?
I'm going to buy it and I need your comments.
Thanks,
NicVan
|
|
|
|
|
Give it a rest - fair dinkum.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hey all,
I'm writing a modular application which is essentially an application framework. I would like users to be able to select the modules they want to use AND I would like them to download new modules as they are developed. Any ideas how I can 'attach' code to my application?
|
|
|
|
|
Search for "plugin based architecture" here or in Google, you should get plenty of pointers.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
Hi
Can anybody explain me the article "Administrate SQL Server2000 From Pocket PC" By "rasheed1979". How to create such an application? Guide me step by step as i m going to develop this type of application for the first time.
|
|
|
|
|
|
virgo* wrote:
Guide me step by step as i m going to develop this type of application for the first time.
Isn't that what the article is for ? Why not ask the author if it's not clear ?
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
well! how to contact the author....from where can i get step by step guide to develop such application...i hav to develop server side only of such application in SQL server, ASP.NET, ADO.NET, web services
|
|
|
|
|
There's an email link available next to the normal reply options if you view any of the comments he's made in the forum at the bottom of the article. You should try posting there first though. I agree with Christian that the article looks to be an explanation of what you want. IF you're still having diffuculty a more focused set of questions would be beneficial.
|
|
|
|
|
well i want to contact author of this article...how can i contact the author....where is the link to contact him...well my question is how to develop such type of application in .NET.i hav no experience of programming etc.If i want to develop & deploy such an application how to develop such application.i havnt developed even a single application in .NET...hope u understood my question now
|
|
|
|
|
Like they said, go to the article your talking about. Scroll down to the bottom of the page and click on "New thread". You can post your question in the forum for that article.
To make it simple, click here[^].
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
thnx mr Dave Kreskowiak...i just posted there too...but if anybody here can help me....you are more than welcome
|
|
|
|
|
If you've never done any programming at all, I strongly suggest you set aside this project for a while, buy a good introductory programming book, read it, and work through all the examples it contains. When you buy the book, make sure it's one intended for someone who's learning to program for the first time, as opposed to one targeting an experianced programmer looking to aquire a new language. The odds of finding someone willing to handhold you to the extent you appear to want/need without being paid are slim to none.
|
|
|
|
|
Yep - very good advice indeed.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
There was a possiability to format some "extended" properties of text with "old" GDI. It's true for comparisng of "old" RichTextBox (I mean COM-component) and ones from Windows Forms. For example, intercharacter spacing (like in Word documents), superscript and subscript. GDIplus allows only formatting of string alingment, text face and size. Using GDI handle of GDIplus Graphics object with "old style" GDI functions is seems not practical for productivity reasons. Using secondary (inmemory) device context and selfrendering text formatting for control in it is some kind of head pain too. Is where other choices?
|
|
|
|
|
I am required to submit a mail server project after approximately 2 months but the problem is that I can't decide the proper programming language that is most suitable for this project.
Please Help....
SS
|
|
|
|
|
You want to write a mail server, and you were supposed to have it done two months ago, or you have two months to do it ?
If you know C++, then I'd say C++. If you don't, then try C#. If you're saying it has to be a .NET language ( seeing as you asked here ), then C# or VB.NET can essentially do the same things, even if C# does them nicer. Both of them can probably do most of what C++ does as well, given pInvoke as an option.
The number one question is, what languages do you know well ? If you only know VB.NET, then much as it sucks, the beginning of short project is not the best time to start learning C++, or even C#.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hello, this website has helped me tremendously in my indenpendent projects I have been working on in Visualy C++ .NET 2003 IDE. Anyways, I have been working on a video game and when I copy the current directory I am on to make a new version, I get the following error: "error from resgen.exe". I looked at FAQs online and found out what resgen.exe does and so I made a fresh directory of resources, and added them to the project once again, however I still received the same error. Is there something I missed or something else I can do to get rid of this error? Thank you for all the help.
Michael L. Allen
|
|
|
|
|
Hey everyone, a quick thanks for taking a look at this...
Basically, my problem is this... I have a "Core" library which contains a "Manager" component, and I want to use this component in C#. This component is written in C++, and here is the IDL file defining its type library.
<br />
import "unknwn.idl";<br />
<br />
[<br />
object,<br />
uuid(822A2EDE-09F1-45b8-B80E-A32F21415677),<br />
helpstring("Interface used by the Manager")<br />
]<br />
<br />
interface IManager : IUnknown<br />
{<br />
HRESULT GetAppName([out, size_is(, *pcMax)] char **ppAppName,<br />
[out] long *pcMax);<br />
<br />
HRESULT SetStatus([in] long cLength,<br />
[in, size_is(cLength)] char* id,<br />
[in] int s);<br />
};<br />
<br />
[<br />
uuid(AE068C74-0B8B-4041-8CA9-4A590DDDC382),<br />
helpstring("Core Component Library")<br />
]<br />
library Core<br />
{<br />
importlib("stdole32.tlb");<br />
importlib("stdole2.tlb");<br />
<br />
interface IManager;<br />
}<br />
Now, if I write a C++ app to use this component, doing this, it works great...
(Keep in mind, the component is registered in the registry and the DLL creates an instance of the component by using IClassFactory)
<br />
#include "stdafx.h"<br />
#include <objbase.h><br />
#import "Core.tlb"<br />
<br />
int main(int argc, char* argv[])<br />
{<br />
HRESULT hr = NULL;<br />
CLSID clsid;<br />
<br />
::CoInitialize(NULL);<br />
<br />
Core::IManager* pManager;<br />
hr = CLSIDFromProgID(OLESTR("Core.1"), &clsid);<br />
<br />
if(FAILED(hr))<br />
{<br />
cout << "DLL not installed correctly" << endl;<br />
}<br />
<br />
hr = ::CoCreateInstance(clsid, NULL, <br />
CLSCTX_ALL, __uuidof(Core::IManager), (void** )&pManager);<br />
<br />
<br />
if(SUCCEEDED(hr))<br />
{<br />
cout << "Found component!" << endl;<br />
<br />
}<br />
}<br />
No problem, it executes just fine, my C++ app easily uses the component.
Now, I try importing "Core.tlb" into .NET, by using tlbimp.exe, I get a useless managed assembly... After pouring through MSDN article after MSDN article, I've come to the conclusion that its possible to create a COM class wrapper? However, I've had no luck with that as well... This is all I've been able to come up with, but I know it doesn't work...
<br />
namespace Core<br />
{<br />
[Guid("822A2EDE-09F1-45b8-B80E-A32F21415677"),<br />
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]<br />
interface IManager<br />
{<br />
void GetAppName(<br />
[Out, MarshalAs(UnmanagedType.BStr)] string strAppname,<br />
[Out] int maxSize);<br />
<br />
void SetTestPointStatus(<br />
[In] int MaxLength,<br />
[In, MarshalAs(UnmanagedType.BStr)] string id,<br />
[In] int status);<br />
}<br />
<br />
[ComImport, Guid("AE068C74-0B8B-4041-8CA9-4A590DDDC382")]<br />
class CManager<br />
{<br />
}<br />
}<br />
Anyone have any suggestions? I've come to the conclusion that I really have no idea what I'm doing in C# as far as interop goes, I'm not a bad C# coder, but this just escapes me at the moment...
Anyway, thanks again for reading this
|
|
|
|
|
If you add a reference to your com object ( right click on references in the solution pane, click add reference, the COM tab and scroll down to your object ), your object will become available through a new namespace, which will be the name of the object, visible in that list of references.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
First, thank you very much for your advice...
Hmmm, I've tried that, but like I said, I don't really have that usable of an interop assembly... It only gives me Core::IManager, just the interface... Do I have to implement that interface, or write a wrapper for that? There are no class objects for me to instantiate... Some sites talk about coclasses, but I have none defined in my IDL file, and I'm not really sure what I'm doing as far as that... haha, am I just doing this wrong?
Thanks again
|
|
|
|
|
My code just does this:
AVIFileInProc avi = new AVIFileInProcClass();
The trick was working out on which side the name with 'Class' in it went. I just imported the COM object, and put 'using typename;' at the top of the class where I use it.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Hmm, I tried that, but it can't find any IManagerClass class... I know that when you use tlbimp or import a DLL or type library through .NETs Add Reference thing, in the managed assembly there should be 2 public classes;
IManager
IManagerClass
but only IManager is there when I run the MSIL Disassembler...
Maybe my IDL file is wrong? Or should I just give up with trying to import the type library and figure out the hard way how to write a COM class wrapper?
Thanks again
|
|
|
|
|
I imagine that the class is hidden behind a namespace and you need to work out what the namespace is. It's the same as the type name you'd use to spin a COM object in VBScript.
Christian Graus - Microsoft MVP - C++
|
|
|
|
|
Please try tlbimp on the dll and see what error you are getting.
tlbimp 'dllname'
|
|
|
|