Thanks for your reply. and however, LinearGradientBrush only draw gradient area on straight way. PathGradientBrush might be helpness, but Im not sure how to do with it.
kcynic
Posts
-
How to implement such such a gradient path like a ring? -
How to implement such such a gradient path like a ring?How to implement such a gradient path like this: http://p13.freep.cn/p.aspx?u=v20_p13_photo_1303041411469897_0.png[^] using gdi or gdi+?
-
How to use a com dll without embedded typelibrary in it?My be. But my main problem is create the component class. You know, in C#, i just reference the com dll. If i have to use the raw com dll file as common unmanaged dll, im not sure how to create the object and how to translate parameters. So, I hope to add referenct it via its type library(.tlb file).
-
How to use a com dll without embedded typelibrary in it?Oh, thanks all the same. I will be glad to tell you the solution if i got it.
-
How to use a com dll without embedded typelibrary in it?Oh, of course the com dll has been registered successfully. When add its reference by vs(it can be listed in the com tab list), vs will give me an error messagebox says "A reference to '*** Type Library' couldn't be added. This is not a COM component". But, if the dll has embedded type library in it, it will be ok.
-
How to use a com dll without embedded typelibrary in it?Thanks for your reply. As we know, an atl com dll only export five functions: DllCanUnloadNow,DllGetClassObject,DllRegisterServer,DllUnregisterServer. So, im afraid that couldn't help to reach my aim, right?
-
How to use a com dll without embedded typelibrary in it?There is a com dll written by C++ ATL. There is no embedded type library resource in it, although I have its type library(.tlb file) seperately. I can't add it to my C# project references. So, how should i do to use it?
-
How to develop a visual studio plugin to hook debugging?I want to load a dll library of mine before i trigger vs' debug menu? In another word, i want to inject my dll to the new debugged process(and my dll should be loaded before any other dll except kernel32.dll). What should i do?
-
How to fully custom draw combobox control, edit, arrow button and listbox included?I meant, how to use WM_MEASUREITEM and WM_DRAWITEM messages handler if i subclass its edit, button and listbox.
-
How to fully custom draw combobox control, edit, arrow button and listbox included?You means, just subclass all its three subitems? but if use its ownerdraw property?
-
How to fully custom draw combobox control, edit, arrow button and listbox included?I want to fully draw combobox control by myself, not only the list items. I searched but only found some demos about how to custom draw its subitems. But I really want to draw the edit, arrow button and listbox of the combobox completely. So, is there any example or idea? Regards
-
How to connect remote sql server(within LAN) using ADO?Oh, thanks for you reply, i think i got the answer from that page.
-
How to connect remote sql server(within LAN) using ADO?Oh, there are the answers: 1. All clients within a LAN. 2. My pc is a dev box 3. I have MS SQL Server 2005 installed. 4. Of course no product. I just took that as a example 5. Im not a web developer, so b/s has no help for me. No matter how many clients would be, i just only want to know how. Thanks
-
How to connect remote sql server(within LAN) using ADO?But, 192.168.1.100 is the real local IP of mine and i do want to use my machine as the SQL server. You meant, I should replace Server=192.168.1.100 with Server=MyPcName? But, if so, to a client witch knew its server ip only, how should it configure this argument? Unfortunely, if it's not a practice but a C/S product, one of its user is a orgnization with a plenty of members,they all need to install the client program, so they configure the Server argument with their server's correct name. And for another group, they have to do the similar work! In another words, the installation can't be done automately! right?
-
How to connect remote sql server(within LAN) using ADO?Oh, I use my computer as sql server, the code which useing "Driver={SQL Server};Server=192.168.1.100;Address=192.168.1.100,1433;Network=DBMSSOCN;User ID=sa;PWD=123456;Database=DaDian2008" works well on my own computer, but doesn't on another computer.
-
How to connect remote sql server(within LAN) using ADO?Thanks for your reply. But my real problem is that, how to connect to a remote ms sql server(within LAN)?
-
How to connect remote sql server(within LAN) using ADO?I want to connect to the sql server database and do some query command via ado. I use this connection string to do that work:"Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DaDian2008;Data Source=localhost;UID=sa;PWD=123456;Network Library=dbmssocn", it works well. But how about with a remote server(LAN). For example, my ip address is 192.168.1.100, i just replace localhost to 192.168.1.100, it would get an exception says: Code = 80004005 Code meaning = Unspecified error Source = Microsoft OLE DB Provider for SQL Server Description = [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL server not found. Why? And how can i connect to a remote sql server(MS SQL Server within LAN)? btw, if I use "Driver={SQL Server};Server=192.168.1.100;Address=192.168.1.100,1433;Network=DBMSSOCN;User ID=sa;PWD=123456;Database=DaDian2008; Then, I can connect to the database on my locale computer, but it would fail again on another computer.
-
how to connection to a remote sql server via ado? [modified]I want to connect to the sql server database and do some query command via ado. I use this connection string to do that work:"Provider=SQLOLEDB;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=DaDian2008;Data Source=localhost;UID=sa;PWD=123456;Network Library=dbmssocn", it works well. But how about with a remote server(LAN). For example, my ip address is 192.168.1.100, i just replace localhost to 192.168.1.100, it would get an exception says: Code = 80004005 Code meaning = Unspecified error Source = Microsoft OLE DB Provider for SQL Server Description = [DBNETLIB][ConnectionOpen (Connect()).]Specified SQL server not found. Why? And how can i connect to a remote sql server(MS SQL Server within LAN)? btw, if I use "Driver={SQL Server};Server=192.168.1.100;Address=192.168.1.100,1433;Network=DBMSSOCN;User ID=sa;PWD=123456;Database=DaDian2008; Then, I can connect to the database on my locale computer, but it would fail again on another computer.
modified on Sunday, March 21, 2010 9:16 AM
-
how to pre-define a com interface in a idl file?Thanks for your reply. I have tried this method but fail, because i always use the right idl files generated by atl project wizards, and i failed because i spelt 'Interface IB' other than 'interface IB'.(VS also highlights 'Interface' and 'interface'!). Regards.
-
how to pre-define a com interface in a idl file?There are two interfaces IA and IB, but they reference each other in their method. The problem is, if i declared IA before IB, IA would get a error because IB was unknown to it; if i declared IB before IA, IB would get the same error. I know i can fix this problem by replacing the parameters from IAs and IBs to IUnkown. but i want to know if there is a resolution like C++'s classes pre-defining?