|
hi
i making a program to make dial-up connection and connecting to the net ,i dial with numbers stored in database , i use win API
like(InternetDial() ,InternetHangUp()), but i have two problems
1)InternetDial is dialing with default network connection on pc.
i need to make it taking numbers from database.?????
2) i want to create a new dial-up connection on pc, idont now what function i can use
thank u for advanced help
send me on hz_csharp@hotmail.com
|
|
|
|
|
Hello, i have a set of controls very similars (for example, 8 TextBox), and i want to create them in a TextBox array with Windows Forms Designer. In VB5 i done it putting the same Name property to all of them, but in C++ managed with Windows Forms Designer, i don't find the way.
I want to avoid make it by code because i have a lot of these type of controls.
P.D: forget my bad english please
|
|
|
|
|
Control Arrays aren't available in the current Visual Studio 2003 product, for any language. I believe we're working to reintroduce them in the Whidbey product.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
Ffelagund wrote:
I want to avoid make it by code because i have a lot of these type of controls.
Why not code one control manually in a loop?
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
That doesn't be useful to me. For example, i have 8 TexBoxes, 8 CheckBoxes, and 8 Buttons, that all do the same function but with a diferent target (every textbox, checkbox and button handles some properties of every texture unit (i'm writing an OpenGL application), when i must check what button,textbox or checkbox has been changed/pulsed/etc, i must go trought all of them (one by one), and repeat a bunch of code. Currently i make an array of pointers and assign the controls to it, and do all the stuff in a loop, but this have some disadvantage because all must be manual (events and delegates) and the code becomes dirty because the "array-individual" mixted handling.
|
|
|
|
|
Hi there,
I want to build an RPL compiler (for HP calculators) in Managed C++.
I discover Managed C++ and .NET (I come from MFC), I saw the CodeDOM set of classes.
Will these classes help me to write my compiler?
In this RPL compiler, I want input a text file (with keywords, syntax etc.), and it generates a series of code ready to be linked. and once the program is linked, download it in the calculator
If CodeDOM is the correct tool for what I wanna do, can anybody show me some samples about CodeDOM?
Thanks for the help.
Best regards.
Bouli.
|
|
|
|
|
CodeDom is quite esy, but painfull to write (too much typing IMO), but seeing a RPL calc only uses simple operations, I suugest you look into dynamic assemblies, created with Reflection.Emit. As a starting point, look at AppDomain.DefineDynamicAssembly().
Good luck
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Hi,
Thanks for answering me
what I want to do is not an RPL calculator, but making a full compiler that will recognize syntax, keywords and so on from RPL language (it contains assembler too) and it will generate binary code that will run directly in the calculator.
ie:
the RPL programm look like this
::
ClrDA1Ok * clear 1st line
"Hello world" DISPROW1 * display "Hello world" on the 1st line with medium font
;
The compiler will generate the binary code that when it will run on the calculator...
For the compiler, in this example, only "::" and ";" are keywords.
ClrDA1OK and DISP1 are instructions (from a file) that correspond to readable entry point in the ROM of the calculator.
a declaration look like this:
=ClrDA1OK EQU #390CC *
=DISPROW1 EQU #1245B *
when the compiler sees ClrDA1OK, he knows that it has to replace this by "CC093" (inverted code for #390CC) = and EQU are keywords (this definitions are differents from the DEFINE keyword )
This compiler, has lot of keywords and it can mix assembler & RPL. I think, the best way to do that will be into 3 programs:
- Preprocessor (it will generates lines of textual code ready to be assembled)
- Assembler (it takes lines of code, handly written or generated by the preprocessor into machine code independent from the HP platform HP48-HP49 etc...)
- Loader/Linker (it generates the apropriate code ready to be transfer in the apropriate calculator)
I think .NET can do the job in a more easy way as MFC. .NET framework provides a lot of classes that are designed for this job
Maybe you or someone can show me what way to ride...
Best regards.
Bouli.
|
|
|
|
|
Hi all,
I am trying to use the InternetExplorer object to automate Internet Explorer from my Managed C++ application;
The following is a snippit of C# code that compiles and runs.
using SHDocVw;<br />
............<br />
............<br />
private SHDocVw.InternetExplorer m_IExplorer = null;<br />
..............<br />
............<br />
..........<br />
m_IExplorer = new SHDocVw.InternetExplorer();
However, when I convert it to Managed C++, thus;
using namespace SHDocVw;<br />
............<br />
............<br />
private: SHDocVw::InternetExplorer m_IExplorer;<br />
..............<br />
............<br />
..........<br />
m_IExplorer = new SHDocVw::InternetExplorer();
I get the compile error
C3153: 'SHDocVw::InternetExplorer' : you cannot create an instance of an interface
Does anyone know what I am doing wrong?
Regards,
Chris
|
|
|
|
|
Change
Chris Morrison wrote:
private: SHDocVw::InternetExplorer m_IExplorer;
m_IExplorer = new SHDocVw::InternetExplorer();
To
SHDocVw::InternetExplorerClass* ieForAutomation;
ieForAutomation = new SHDocVw::InternetExplorerClass();
Take a look at the VC.NET - Interop - Automate IE example found in the MSDN Visual C++ .NET 2003 Code Samples[^]. I bet this sample is doing some of the exact stuff you are trying to do!
Roger Stewart
"I Owe, I Owe, it's off to work I go..."
|
|
|
|
|
Roger Stewart wrote:
Change
Chris Morrison wrote:
private: SHDocVw::InternetExplorer m_IExplorer;
m_IExplorer = new SHDocVw::InternetExplorer();
To
SHDocVw::InternetExplorerClass* ieForAutomation;
ieForAutomation = new SHDocVw::InternetExplorerClass();
Thanks Roger, I just cracked it by looking though the MSDN Library. Thank you for that link as well, that sample should come in very handy.
Kind Regards,
Chris
|
|
|
|
|
i am not able to add a reference from the project menu.
|
|
|
|
|
In the "Add Reference" dialog (_not_ "Add Web Reference"), on the ".NET" tab, scroll down and select "System.Web.DLL". Add it to the project references by clicking the Select button, then OK.
Alternatively, you can manually identify references to the compiler in code with #using, or on the command line with the "/FU" flag.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
http://www.codeproject.com/shell/shellextguide1.asp
class ATL_NO_VTABLE CSimpleShlExt :
public CComObjectRootEx<CComSingleThreadModel>,
public CComCoClass<CSimpleShlExt, &CLSID_SimpleShlExt>,
I don't know what this function is inheriting. I have only seen these used in templates. Can I get some help or reading material or a better phrase to search under?
Thanks
|
|
|
|
|
it's for templating.
a quick look at msdn shows
template< class ThreadModel> class
for
CComObjectRootEx .
templates are extremely useful if you have a class or function that should take in more than one object type (like a string, or an int...it saves the time of having to write multiple instances of code to handle different containers.)
check out templates on msdn.
*.*
cin >> knowledge;
|
|
|
|
|
ok, so I am inheriting only specific functions then, and these functions are templated?
|
|
|
|
|
Dear viewers !
This is Sardar Ahmed Bilal doing BCS(Hon) from AMI Iqra University Peshawar Campus. And want your help to make a good interactive Project(Software) for the User's for our university like let say a Keyboard(its an example), and for that i want your suggestions and codes help and some description also with your code about that code to help me out coz i completed my C++(Part-1->Fundantals, & Part-2->Object Oriented Programming Language) in the third Semester and right now i have forgotten almost all of it but still i can do it by the hepl of you people so plz help me out, THank You, Bilal
|
|
|
|
|
Hi folks,
I have an MFC project and I wrapped it by Managed C++. This project works well. But there is something that annoys me. I tried to see the assembly generated by Managed C++ in .NET object browser. I saw some other stuff except for my classes and namespaces have been exposed to the object browser that's not good. Is there any way to hide these unnecessary components from assembly so that they do not show up in object browser?
Please advise me. Thank you.
Arash
Arash Sabet
Computer Engineer
E-mail: afifi@sympatico.ca
|
|
|
|
|
Change the accessibility of the members you don't want to be visible or accessible outside of the assembly. I.e. "public" to "private" or "private public".
A common one is the destructor of a managed object. Set its accessibility to "private public" to make it accessible only within the scope of the assembly.
Nick Hodapp
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
Implement the following C routine permission(inode,mask) – this routine checks whether a specified access mode is allowed for the file associated with an inode.
|
|
|
|
|
Why the return type doesn't have significance in function overloading. What might be reason in compilation designing for this issue.
Maruthi
|
|
|
|
|
I have an assembly that I built in C# and I wanted to be able to use it in an extended stored procedure. Does anyone know if this is possible? Thank you very much for your time.
|
|
|
|
|
I have a HID device (magnetic cardreader) that uses a usb port to connect to a computer running any version of windows. I want to be able to figure out what port the device is on and read information from it. I know I need to use the Win32 API, but I haven't been able to find any useful information on how to do this. Can any one help?
Thanks in advance.
|
|
|
|
|
I would start by looking at the work Camilo Toro has done. He has wrapped the needed portions of Win32 in a C# class. You'll be able to do what you want without writing much code at all. His work, called USBSharp, can be found on Jan Axelson's HID Page[^]. (Jan is the author of USB Complete, a great book to wet your taste buds.) For more details, look at the rest of Jan's site, the MS DDK, and MSDN of course.
Hope this helps,
Chris
|
|
|
|
|
Thanks for the link. I could have used that a few years ago when I was trying to have 2 independent usb mice...
John
|
|
|
|