|
|
I'm writing a tutorial on creating Word2000 addins using VC++/ATL. In it I'm also discussing the VBA side of Word. It is almost written though I have to edit it a bit.
Anyone else here planning to write something similar, let me know.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - PocketPC New menu
Office addin
|
|
|
|
|
I've been writing Word Addin's for the past 2 years. Send me the article when it's ready and I'll review it.
Cheers,
-Erik
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
My thoughts are my own and reflect on no other.
|
|
|
|
|
Hi,
Sorry! I should have probably posted earlier that my article has been published here.
But let me also ask you this. How do I create an Outlook's New button style'd button? If you notice, clicking on the button performs an action while clicking on the downward arrow displays a menu. I cannot ever create a CommandBarControl without styles = 10(popup) or 2(button). It looks like there are two buttons wedged together, and that makes sense. One is a CommandBarButton while the other is a CommandBarPopup that are very close to each other. I can get a 'separator' with setting BeginGroup property and handling each objects click event would make it possible to do 2 different things. But visually I can never quite get it cool enough.
Hush,hush...
thought I heard you call my name now.
Kula Shaker.
Amit Dey
Latest articles at CP - PocketPC New menu
Office addin
|
|
|
|
|
Hi...
Can somebody write a convertor from C++ headers to C#...
I mean convertion of fucntion declaration:
example:
in c++ in header structs and functions look like:
<br />
typedef struct tagCREATESTRUCTA {<br />
LPVOID lpCreateParams;<br />
HINSTANCE hInstance;<br />
HMENU hMenu;<br />
HWND hwndParent;<br />
int cy;<br />
int cx;<br />
int y;<br />
int x;<br />
LONG style;<br />
LPCSTR lpszName;<br />
LPCSTR lpszClass;<br />
DWORD dwExStyle;<br />
} CREATESTRUCTA, *LPCREATESTRUCTA;<br />
<br />
WINGDIAPI int WINAPI GetDIBits( IN HDC, IN HBITMAP, IN UINT, IN UINT, OUT LPVOID, IN OUT LPBITMAPINFO, IN UINT);<br />
in c#
<br />
[StructLayout(LayoutKind.Sequential)]<br />
public struct CREATESTRUCT<br />
{<br />
IntPtr lpCreateParams; <br />
IntPtr hInstance; <br />
IntPtr hMenu; <br />
IntPtr hwndParent; <br />
int cy; <br />
int cx; <br />
int y; <br />
int x; <br />
Int32 style; <br />
string lpszName; <br />
string lpszClass; <br />
UInt32 dwExStyle; <br />
}<br />
<br />
[DllImport("gdi32")]<br />
public static extern int GetDIBits(IntPtr hDC, IntPtr hbm, int StartScan, int ScanLines, int lpBits, BITMAPINFOHEADER bmi, int usage);<br />
Languages is simmilar enough and conversion can be done by simple words replace and strings movements
Good Luck
Alex Kucherenko
|
|
|
|
|
All WIN32 structures are already converted in this file : WIN32API.txt ( vc7installdir \ Common7 \ Tools \ Bin ).
It's not using the C# syntax, but that's pretty close.
If you are having problems with P/Invoke, consider using MC++ mix mode.
|
|
|
|
|
good, but not enough
Good Luck
Alex Kucherenko
|
|
|
|
|
Is there a VB->C# translator?
|
|
|
|
|
There is a C#->VB .NET Converter[^] , but I don't kow of a VB->C# converter.
I'm working on one based on the SharpDevelop[^] refactory, but it won't be done for a little while. (Long term project, not short term goal.)
"Do unto others as you would have them do unto you." - Jesus
"An eye for an eye only makes the whole world blind." - Mahatma Gandhi
|
|
|
|
|
I don't know yet if it's good or not, but a translator[^] was posted on CodeProject a few days ago.
|
|
|
|
|
I have no damn time, but what I think is a totally brilliant idea.... and I am giving it away.
A version control system that runs off of the FTP protocol.
This allows people that want to collaberate on something have to do nothing more than pay for some decent web hosting space that allows FTP access and get a distributed version control server.
There, now someone please write it, make millions and giv eme a copy so I can use it on a project that I am working on rigth now!
I hate the GotDotNet workspaces!
Paul Watson wrote:
"At the end of the day it is what you produce that counts, not how many doctorates you have on the wall."
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Unknown wrote:
"I love long walks, especialy taken by those that annoy me."
Paraphrased from TMNT:
"Cricket? You have to know what a crumpet is to understand Cricket."
|
|
|
|
|
Something similar is in the works, and will be a killer solution when it is finished. It's called subversion, and uses WebDAV. It's meant to be a CVS replacement. It's currently in Alpha, and I'm really looking forward to when they finally release it. Check out http://subversion.tigris.org
--Jerry
|
|
|
|
|
I used a program called ReGet which altered the popup menues on Internet Explorer. I'd like to do this. Can anyone point me in the right direction. I'm completely new to windows and don't have a clue where to start looking
|
|
|
|
|
Refer to articles wrote by Michael Dunn about Shell Extension.
Here is the link[^] of index.
A. Riazi
|
|
|
|
|
|
I know I've references to articles on how to go about blocking popup ads in WebBrowsers in the past. Today I've been searching and can't find them. Anyone know where I might look?
|
|
|
|
|
|
Man, I guess my searching skills are poor this morning. Or maybe the searching technology on CodeProject is a bit lean? Not quite up to google standards.
Anyway, thanks a bunch. Just what I remember seeing in the past.
-Brett-
|
|
|
|
|
Use http://www.google.com/advanced_search?hl=en and set the domain to codeproject.com.
I love CP but the search engine is severly lacking.
Todd Smith
|
|
|
|
|
I have a DLL file with some function in it and want to use one of the functions but I havent any details about it parameters.
I like to know if is any way or any program to solve my problem
|
|
|
|
|
If you have Dependency Walker installed (comes with VC, or go to www.dependencywalker.com[^] to download it), you can open the DLL in there to get a list of contained exported functions and their parameter types - but not the meaning of those param's.
Dylan Boycott Bush Punch GWB
|
|
|
|
|
oh its a user define dll and havent any reference so I fetch its assembly code to . How many in input and have it and what is it return format
10001F56 90909090909090909090 Align 16
10001F60 _CPDecrypt@24:
10001F60 8B442410 mov eax,[esp+10h]
10001F64 83EC44 sub esp,00000044h
10001F67 83F840 cmp eax,00000040h
10001F6A 7E77 jle L10001FE3
10001F6C 8B4C244C mov ecx,[esp+4Ch]
10001F70 83F918 cmp ecx,00000018h
10001F73 7E6E jle L10001FE3
10001F75 55 push ebp
10001F76 8B6C244C mov ebp,[esp+4Ch]
10001F7A 56 push esi
10001F7B 8BD1 mov edx,ecx
10001F7D 57 push edi
10001F7E 33C0 xor eax,eax
10001F80 8BFD mov edi,ebp
10001F82 8B74245C mov esi,[esp+5Ch]
10001F86 C1E902 shr ecx,02h
10001F89 F3AB rep stosd
10001F8B 8BCA mov ecx,edx
10001F8D 83E103 and ecx,00000003h
10001F90 F3AA rep stosb
10001F92 8D4C240C lea ecx,[esp+0Ch]
10001F96 33C0 xor eax,eax
10001F98 2BF1 sub esi,ecx
10001F9A L10001F9A:
10001F9A 8D4C040C lea ecx,[esp+eax+0Ch]
10001F9E 8A140E mov dl,[esi+ecx]
10001FA1 80F242 xor dl,42h
10001FA4 40 inc eax
10001FA5 83F840 cmp eax,00000040h
10001FA8 8811 mov [ecx],dl
10001FAA 7CEE jl L10001F9A
10001FAC 68200B0110 push L10010B20
10001FB1 FF1508900010 call [KERNEL32.dll!EnterCriticalSection]
10001FB7 8D44240C lea eax,[esp+0Ch]
10001FBB 8B4C2464 mov ecx,[esp+64h]
10001FBF 50 push eax
10001FC0 51 push ecx
10001FC1 55 push ebp
10001FC2 E809F1FFFF call SUB_L100010D0
10001FC7 83C40C add esp,0000000Ch
10001FCA 68200B0110 push L10010B20
10001FCF FF1504900010 call [KERNEL32.dll!LeaveCriticalSection]
10001FD5 5F pop edi
10001FD6 5E pop esi
10001FD7 B801000000 mov eax,00000001h
10001FDC 5D pop ebp
10001FDD 83C444 add esp,00000044h
10001FE0 C21800 retn 0018h
|
|
|
|
|
i think its a good idea cause not everybody understand that real hardcore books and if beside a tutorial is the code c++ and c# everybody can understand watching the code and read the manual.
I think design patterns are the best solution to solve problems with your software architecture and make it easier to update & debug.
First there should be a introduction to patterns and then some general patterns like "acceptor-connector" and their design steps.
so i will help if you want to create a section like this...
Martin Lierschof
Junior Programming Assistant
World-Direct.at eBussines Solutions GmbH
mail²: martin.lierschof@world-direct.at
|
|
|
|
|
|
Hi,
as a consequence to what I wrote yesterday, I checked the other articles of hackBOY. At least his article "http://www.codeproject.com/useritems/Mail_Report_Program.asp",
"Mail Report Program in Visual C++", also installs a backdoor on your pc. The file is called WINDLL.EXE, located in %WINDIR%\SYSTEM32, and started through registry entry.
If there is any possibility, the article should also be removed from codeproject.
Greetings from germany,
Patrick
|
|
|
|