الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

dll , cpp

بدأه CorrM HP في 17 سبتمبر 2013 · 3 رد · 1,403 مشاهدة · في C++.Net
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

معى كود cpp و لكن عند استخدامه فى عمل ملف dll

 

لا يستجيب و يجلب لى بعض الاخطاء

 

ماذا افعل

#2

الكود واﻻخطاء؟

post-15367-027053900%201340345097.gifpost-15367-087183200%201340344597.gif
post-247365-0-10080400-1379403554_thumb.

#3

الكود


//Www.MA-Programs.Com - Cross Hair

// By Mhemmad

#include "stadfx.h"

#include <windows.h>

#include <iostream>

#include <math.h>

using namespace std;


bool crosshairon=false;

HDC ragedc = NULL;

int crosshairsize=0;

int cx=0;

int cy=0;


void CrossThread(void)

{

    while(1)

    {

        if(GetAsyncKeyState(VK_NUMPAD0)&1)

        {

            crosshairon=!crosshairon;

            ragedc = GetDC(HWND_DESKTOP);

            cx=GetSystemMetrics(SM_CXSCREEN)/2-((crosshairsize-1)/2);

            cy=GetSystemMetrics(SM_CYSCREEN)/2-((crosshairsize-1)/2);

        }

        Sleep(1);

    }

}


int main()

{

    cout<<"Www.MA-Programs.Com _ Crosshair size in pixels:\n";

    cin>>crosshairsize;

    if(crosshairsize%2==0) //check if its even

    {

        crosshairsize+=1; //if it is add 1

    }

    system("cls"); // clear the console :)

    cout<<"Www.MA-Programs.Com _ Press numpad0 to toggle the crosshair on and off\n";

    CreateThread(0,0,(LPTHREAD_START_ROUTINE)CrossThread,0,0,0);

    while(1)

    {

        if(crosshairon==true)

        {

            for(int i=0;i<crosshairsize;i++)

            {

                SetPixel(ragedc, cx+i, cy+((crosshairsize-1)/2), RGB(255,0,0));

                SetPixel(ragedc, cx+((crosshairsize-1)/2), cy+i, RGB(255,0,0));

            }

        }

        Sleep(1);

    }

}
#4

و هذه المكتبه معه

ممكن ترفق لى المشروع كامل

#pragma once
#define WIN32_LEAN_AND_MEAN
#define WIN32_EXTRA_LEAN
#include <windows.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#include <d3d9.h>
#include <d3dx9.h>
#pragma message("Thanks To Maroon5.")

مواضيع مشابهة