User Profile

Collapse

Profile Sidebar

Collapse
AHMEDYO
AHMEDYO
Last Activity: Jan 14 '08, 03:10 PM
Joined: Nov 15 '07
Location: Cairo,Egypt
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • AHMEDYO
    replied to Setting Wallpaper by VB6.0 code
    HI....

    You can use SystemParameter sInfo() API Function to Set Or Get any OS parameters Setting as Desktop Wallpaper


    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to What is the equivalent of gotoxy in C++?
    in C
    HI..

    you can replace it by using "WriteConsoleOu tput" API Function, it declared in Windows.h Header File

    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Run time control
    Hi..

    I think this link will help you to create controls at run-time. This link describes how to create textbox control at run-time, just use label and image control instead.

    http://www.thescripts.com/forum/thre....html#post_box

    Kind Regards...
    See more | Go to post
    Last edited by Killer42; Nov 27 '07, 05:50 AM.

    Leave a comment:


  • HI..

    UserControl Allready have Object refrence to Parent Object, you can use Parent object from ActiveX Control Class, For Example

    [CODE=vb] Option Explicit
    Private ShowState As Boolean
    Private ParentObject As Object

    Public Property Let HideForm(ByVal Hide As Boolean)
    ShowState=Hide
    Set ParentObject = UserControl.Par ent
    ParentObject.Vi sible = Hide
    End Property
    [...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Deferencing Pointer
    in C
    HI..

    i think you mean this is a error from complier??, please show us simple code to see where is the problem


    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to how to write data on the memory
    in C
    HI vmax..

    yes you can do that with void type, i will show you two examples

    first example show the same function i was descript but with void* type

    [CODE=cpp] #include <mem.h>
    #include <conio.h>
    void main()
    {
    void* MyData;
    char Data2[]="MY DATA";
    clrscr();
    MyData=malloc(8 );
    memcpy(MyData,( void*)Data2,7);
    ((char*)MyData)[7]=0; /*you...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Status Bar text display problem?
    in C
    HI..

    you didnt got where is the problem yet?, this link will help you to know more about character set

    http://www.microsoft.com/typography/unicode/cs.htm

    this code will help you more.

    [CODE=cpp] wchar_t *textstring=L"R eady";
    SendMessage((HW ND) hwndStatus,(UIN T) SB_SETTEXT, (INT) 0, (LPARAM)textStr ing);
    [/CODE]

    I hope that help you!

    Kind Re...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to How to convert LPTSTR to char*
    in C
    HI..

    may be this forum will help you!, if not please explain more what you wanna to do.Thanx

    http://www.thescripts.com/forum/thread740413.html

    Kind Regards...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to How to access to a different project in VS2003?
    in C
    HI..

    if i understand your question you have more than 1 method, if you have muliple projects use same classes you can

    1.create separated "Dynamic Link Library" DLL File and your classes will be COM Classes and you can use it anywhere.

    2.just include same sources .cpp files and headers .h files with all projects that use these classes.

    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to c++ with access
    in C
    HI..

    you use C++ or Visual C++??

    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to how to write data on the memory
    in C
    HI...

    if i understand your question, this is a simple code that allocate new string and copy 8 bytes from special memory location to another location and then print it.

    [CODE=cpp]
    #include <mem.h>
    #include <conio.h>
    void main()
    {
    char* MyData;
    char Data2[]="MY DATA";
    clrscr();
    MyData=malloc(8 );
    memcpy((void*)M yData,(void*)Da ta2,7);
    MyData[7]=0;...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to memcpy with size of block UINT64 type
    in C
    HI..

    you have variable with UINT64 type, but i think variable address is still use pointer address size as any pointer for example like INT, UINT64 is 8 bytes variable and INT is 4 bytes but pointer is same for example in 32-bit environemt all is 4 bytes address, then where is the problem when using memcpy when memcpy use address not value, or you try to give memcpy the value of the variable not the address!!!, and this mean you try...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Get instances of Winword.exe
    HI..



    i think there is no way to do that, but you can create Word object with specified file that you wanna to open



    [CODE=vb]

    Dim WordObj As Object

    Set Wordobject = GetObject("C:\Y ourfile.doc", "Word.Document" )

    [/CODE]



    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to password on inputbox?
    HI..

    you are right, but not just it obsolete, but with current situation, he need to print * instead of Original character, you can do that by using FindWindow and SendMessage With ES_PASSWORD Style but take in your mind that inputbox displayed as Model dialog and InputBox() function does not return until user press enter or cancel, this mean you need to create another thread before calling InputBox Function , and then use FindWindow...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Issue while converting LPTSTR to char *
    in C
    HI...

    you using unicode or muli-byte characters??

    Best Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Call functions from a DLL file
    in C
    HI..

    to create DLL : start new project and select project type as Dynamic Link Library DLL, and then declare you functions with [CODE=cpp]__declspec(dlle xport)[/CODE] Keywords,when you start to build your DLL, VC++ will create .Lib File with your dll name "MyDll.Lib" .

    Second to use your Dll: start new exe project and include your DLL header File that have all Functions Prototype,const ant,macros ... etc, and then...
    See more | Go to post

    Leave a comment:


  • HI..

    ok i will get you an example in my second post, but there is no third way to do that within VC++, only Import Directive and COM API Functions can be used to create COM Objects.

    Bext Regards
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    replied to Masked Edit Box
    HI..

    i think that you can use Key_Press Event to control what type of charatcers user can input asscoiated by Length of your TextBox Control and TextBox.SelStar t Property, for example you can allow only digits if the textbox length less than 7 and allow characters from a-z if the length=7 and selstart=6, you can try something like that



    Best Regards

    Edit : sorry i was have miss understand about...
    See more | Go to post
    Last edited by AHMEDYO; Nov 22 '07, 06:32 AM. Reason: Wrong Answer

    Leave a comment:


  • HI...

    COM API Functions as CoCreateInstanc e it not just a function call , it need more knowledge about COM Objects, this link may be help you

    http://msdn2.microsoft.com/en-us/library/ms686615.aspx

    Kind Regards...
    See more | Go to post

    Leave a comment:


  • AHMEDYO
    started a topic Check whether project is running VB IDE

    Check whether project is running VB IDE

    Hi every one...

    This code simply show if your project running from VB6 IDE or running as single exe file, because visual basic 6.0 run your project within VB6.exe process and it doesn't create new exe file for you like VB.NET, this situation make some problems as when you try to use resource with API call, all your functions will get failed.

    Program: Check whether project is running VB IDE
    Language: VB
    ...
    See more | Go to post
    Last edited by Dököll; Nov 27 '07, 02:27 AM. Reason: Added info
No activity results to display
Show More
Working...