Hello there ! I wrote a dll( using MINGW and Codeblocks ) that should do the "background work" of my app. I have an interface build in Microsoft Visual C++ 2015. Is posible to control some TextBoxes, or Buttons( enable/disable ) or ProgressBars, or opening a new Form from the DLL ? Any code snippet would be really apreciated.

Member Avatar
+0 forum 0

I am creating multiple C++ DLLs which have a C wrapper around them for use by an external application. I wanted to have a single error handling library that each DLL has access to. If I created the error library as a static library and then include it in the DLLs I get an issue saying that the library header file could not be found when testing it in a dummy c++ app by including the wrapper header. If I call the DLL in a C or C# app then it works fine. Is this just down to how the …

Member Avatar
+0 forum 0

Hi guys, To make Some things easier, I want to make a program that can do the following: 1. Import a .txt file to a specific .xls file. The .txt file contains several lines of data which is build like this: (aaaa,bbbb,cccc,etc.) sererated by comma. Imported in excel, I would like to split the lines in columns, like this: (column A: aaaa, column B: bbbb, column C: cccc, etc). 2. When this is done, the user can give in, for example column B, an option. When the user clicks on a button, the columns E and F should give Yes …

Member Avatar
Member Avatar
+0 forum 4

Hi Answerers, **Background:** I just figured out how to solve my unresolved external symbols by just dragging the project files from explorer (contained in exe's directory) and plonking them in the dll project, under thier own filter! **Original Situation:** I was getting 'unresolved external symbols' errors because I was #include-ing files that my dll needed that resided in the exe's project folder. Guessing I would figure that the .obj files would get built and the .dll would not know where they were to link to them. **My Question:** * Will this cause any problems in the future? - having two …

Member Avatar
Member Avatar
+0 forum 2

Hi, IS there any way to load a `*.dll` file at run time into PHP project. For instance I want to use the functionality for encrypting the a string using `MCRYPT` module without installing the module. I found on internet that with the usage of `COM` class I can achieve this but don't know how implement this.

Member Avatar
Member Avatar
+0 forum 2

Everytime I try to use mozilla firefox or google chrome a message pops up reading "The application or DLL C:\WINDOWS\system32\USP10.dll is not a valid Windows image. Please check this against your installation diskette". It only lets me use internet explorer web browser. I have tried many different things to try to fix it but have had no luck. I tried restoring my computer, running an anti virus program, restarting my computer, etc. Please help. If you need any more information please let me know. Thanks.

Member Avatar
Member Avatar
+0 forum 8

I have created a C# code where I'll input a code to it and it returns me an encrypted entry pass code. Its all working perfectly. Now the question is that, I want to apply this code to every application I create so that only after getting the pass code, the application should run. As far as I know, I now insert that C# code file to that application and everytime am linking that code files. For a C# application its fine, but when I create application using VB.NET, I am forced to convert the code file written in C# …

Member Avatar
Member Avatar
+0 forum 3

Hi Guys, Quick question. I have DLL which can't be embadded. DLL is added to reference. DLL is added to solution (folder -> /lbr/*.dll) Issue start with not found error (IO) for used DLL. I'm using advanced installer to add DLL. Problem is that I don't know how to add DLL to custom folder and to call out function which would point to proper location... I tried it : <runtime> <dependentAssembly> <assemblyIdentity name="DLLNAME" culture="neutral" /> <codeBase version="1.0" href="./lbr/DLLNAME.dll" /> </dependentAssembly> </runtime> But it doesn't working (errors). I've added it to app.config.

Member Avatar
+0 forum 0

Hi, The problem I am having is that the returned object, from a dll factory, is not lasting for more than the function scope that recieves it. Despite reading [How to prevent the static initialisation order fiasco](http://www.parashift.com/c++-faq/static-init-order-on-first-use.html) I fail to see how it even applies to my code. `g_spEngineLog` is the global that is in question. I have declared it as extern in CEngine header and defined it in the implementation. I Hope this is right! // This is the factory function inside a dll: extern "C" IMPEXP void* CreateClassInstance(bool bBinary) { if (bBinary) return (static_cast<void*>(new CLog<CFileBinary>)); else return (static_cast<void*>(new …

Member Avatar
Member Avatar
+0 forum 1

Hello, I am attempting to make a section in my application where a user can enter their own code which will be executed at runtime. I have looked up how to compile and run Visual Basic code while the program is running (Below). Dim VBP As New VBCodeProvider Dim CVB As System.CodeDom.Compiler.ICodeCompiler CVB = VBP.CreateCompiler Dim PM As New System.CodeDom.Compiler.CompilerParameters PM.GenerateInMemory = True PM.GenerateExecutable = True PM.OutputAssembly = "RunCode.dll" PM.MainClass = "MainClass" PM.IncludeDebugInformation = True Dim ASM As System.Reflection.Assembly For Each ASM In AppDomain.CurrentDomain.GetAssemblies PM.ReferencedAssemblies.Add(ASM.Location) Next Dim CompileResults As System.CodeDom.Compiler.CompilerResults Dim srcText = "Imports Microsoft.VisualBasic" + Chr(13) _ + "Imports …

Member Avatar
+0 forum 0

Dear Kind-Coders, I am trying to learn to use boost::shared_ptr to manage the lifetime of a DLL, but I am having a type conversion problem whilst setting it up. Please see the following code: #include <boost/make_shared.hpp> int main() { { class CMyClass { public: CMyClass() {} ~CMyClass() {} int MyInt; }; typedef void* (*fpFunct1)(); fpFunct1 CreateFoo; /*********************************************** Build error because cannot convert from 'HINSTANCE__ *' to 'HINSTANCE__ **' ************************************************/ boost::shared_ptr<HMODULE> spHDL (LoadLibrary("DllMain.dll"), FreeLibrary); // get the function pointer CreateFoo = (fpFunct1)(GetProcAddress(*spHDL, "CreateFooClassInstance")); // get pointer to object auto pMyClass = boost::make_shared<CMyClass*> (static_cast<CMyClass*> (CreateFoo())); (*pMyClass)->MyInt = 9; } // See destructor/custom_deleter …

Member Avatar
Member Avatar
+0 forum 5

Hello, I'm trying to approach .dll's. Tried some tutorials and got into 2 problems: 1. Using rundll32 from the command line is not working as expected. I write in cmd: "rundll32 mydll.dll MsgBox -32". It shows the MessageBox with text "15991798", changing every time I run it. 2. Calling a dll function from another program gives an error and closes: "dllUser.exe has stopped working. A problem caused the program to stop working correctly. Please close the program.". In console: "Process returned -1073741819 (0xC0000005) execution time : 70.894 s Press any key to continue." now here is my dll function: extern …

Member Avatar
Member Avatar
+0 forum 2

hello! i want to add 3rd party EXE into form. but problem is i think it almost impossible to change without using dll injection . before i was try several method but all failed. actually i was try with vb or vb.net because i almost don't know c++ but vb or vb.net have limitation so im come here to receive help. i was upload exe in here because file is 3mb so can't upload here thanks again! https://anonfiles.com/file/118113c4b294a223f66b85765749b14e

Member Avatar
Member Avatar
+0 forum 5

HI I am trying to make a dll file that performs its tasks using CUDA library. Here is a simple version of my code: CUDADll.cu ` #include <iostream> #include "cuda.h" #include "cuda_runtime.h" #include "device_launch_parameters.h" __global__ void test(int a, int b, int* c) { *c = a+b; } extern "C" __declspec(dllexport) int sumTEst(int a, int b) { int c = 0; test<<<1,1>>>(a, b, &c); return c; } Inline Code Example Here ` When I compile this file, there is no problem. But when I build the project which has only file above, an error occurs: Error 1 error LNK1561: entry point …

Member Avatar
Member Avatar
+0 forum 2

I made three projects the first one is a windows form, the second one is a class library and the third one is another class library to be the reference of the second and first projects. Inside my second Project which is a class library there are two files a class file and a windows form. In the windows form I have controls there are textboxes and labels. My problem is the event of the controls does not work. even there is already codes on it. Is there anything I missed or it just the dll doesn't support the events …

Member Avatar
Member Avatar
+0 forum 3

I have been trying to call a C++ function in a DLL, from a C# WPF application I'm working on. I've done it before and it's worked but I can't remember how I did it and can't seem to find an example that works for me. I'm doing something wrong somewhere but I can't work out where. I've created a project that produces a DLL in C++ with /clr set, and then created a C# WPF project added a button and then added the DLL reference to the WPF project. Both projects and in the same solution, the DLL compiles …

Member Avatar
Member Avatar
+0 forum 7

Hi everyone, Heres my problem: I've installed Qt 4, and there is **no** qmysql.dll/.a in C:\Qt\4.8.4\plugins\sqldrivers\. I am running a MySQL database program and I get Database error: Driver not loaded. Theres not really a lot of help anywhere on google so hopefully DaniWeb will yet again prove itself as a brilliant community! *Thanks in advance!!*

Member Avatar
Member Avatar
+0 forum 3

Right everyone, here's my problem. I have just paid £45 for a book on Qt, have had a nightmere getting it sorted, and finally I can build apps to this extent... I have an app, *test.pro*. I have built it using `qmake test.pro` -> `make` which works. I am using the MingW library within CodeBlocks on Windows 7x64. I have the exe all ready when... *the file mingwm10.dll is missing from your computer, try re-installing* and I have checked that in C:\Program Files (x86)\CodeBlocks\MinGW\bin\ there is DEFINATELY a mingwm10.dll file. I am completely stuck, any help greatly appreciated!! :D

Member Avatar
Member Avatar
+0 forum 2

Hello. I wonder if anyone can tell me something about calling the external dll file from delphi. I have a main form, which has the procedures locating the dll file, and then I have about 30 other forms, in which I use these commands. Now my question is, is it bad or performance-reducing if I replicate all of the availible commands in the code of all forms? Is there even any other-better way, so these commands linked to a dll would be only in main form, so the other forms call them via main form...? One more thing: does it …

Member Avatar
Member Avatar
+0 forum 3

I have been working on a few projects and needed a method similar to pythons string.split(). I decided to make a reusable piece of code and export it as a .dll, the code is below: std::vector<std::string> Editor::StringHandler::Split(std::string data, std::string tokens) std::vector<std::string> returnList; std::string temp=""; bool found=false; for (auto i : data) { found = false; for (auto token : tokens) { found = (i == token); if (found && temp.length() > 0) { returnList.push_back(temp); temp = ""; } if (found) { break; } } if (!found) { temp += i; } } if (!found) { returnList.push_back(temp); } return returnList; } …

Member Avatar
Member Avatar
+0 forum 13

Hello Community, I need help with this script, i can't seem to use this to switch beteen dll files that contain a form eg. if i use it to open a form from the dll file called "Dll One" then when i click the button again it still opens the form from "Dll One", but i want it to open the form from a dll file called "Dll Two". (I have uploaded the form) Please Help...

Member Avatar
+0 forum 0

Hello Community, I was wondering if there is a way to programmatically import a dll containing a form. Example: When i press a button it will open the form from the dll. NOTE: I need to programmatically import the dll. Please help

Member Avatar
Member Avatar
+0 forum 3

Dear Experts,can we make dll in turbo c and use that dll in vb 6.0. Actually i have a program in c and it has so many constant 3 dimensional array.I have to use some API which can not be used in turbo c so i am planning to make turbo c file dll and use this dll in vb 6.0 with API. Pardeep

Member Avatar
Member Avatar
+0 forum 1

hi, i have just migrated from CR8.5 to CR9. now i want to run/display Crystal Report 9 on client machine without installing it there. so, which .dll required for this situation? thanks, krunal

Member Avatar
Member Avatar
+0 forum 4

I am trying to call functions from a DLL `function oziRepositionWP(Number:integer;lat,lon:double):integer;stdcall; ` I have written the code in python no = c_int(1) lat = c_double(34.00962) lon = c_double(74.80067) var =windll.OziAPI.oziRepositionWP(byref(no),byref(lat),byref(lon)) But i get the message var =windll.OziAPI.oziRepositionWP(byref(no),byref(lat),byref(lon)) ValueError: Procedure probably called with not enough arguments (8 bytes missing) where am i going wrong please help

Member Avatar
Member Avatar
+0 forum 3

hello ! i am working on a c# project , but i had done all this is vb before , now i have all the code in vb.net and i want to use it in c# project , someone told me that if i make dll of my vb modules and classes then i can use those dll in my c# project , please guide me how can i do this , as it will save my lots of time to code all that again. Regards Muhammad Waqas Aslam

Member Avatar
Member Avatar
+0 forum 1

I am developing a IE toolbar using MS VISUAL STUDIO 2010 VC++ I have a popup menu, having two options WEB SEARCH and IMAGE SEARCH. my problem is the pop up menu works fine when i see the output in DEBUG mode ... The pop up menu works fine even in the Release Mode but with an ambiguity .... the problem is : - If i see output ( by pressing F5) from the VISUAL STUDIO in RELEASE MODE then the pop up menu works fine . But when i Open the INTERNET EXPLORER explicitly, ( by clicking the IE …

Member Avatar
+0 forum 0

I am using code::blocks and have written a dll. I am currently testing it but am getting tired of having to compile it, copy the DLL, DEF, H and A files into a test project, and then compiling the test project every time I need to fix something. Is there any easier way to test a DLL?

Member Avatar
Member Avatar
+0 forum 6

hi. i have some code in visual basic and i wrote some classes in c++ and i want make it dll but i don't know that when you use dlls it decreases the speed of process or not. thanks.

Member Avatar
Member Avatar
+0 forum 2

**Precedents:** Using visual basic express 2010 on windows 7 pro 64b. Solution one CLB is a class library with multiple projects. Solution two WFA is a windows form application with a reference to one of the CLB projects .dll located in the bin release folder (not the debug folder). **Problem:** When CLB gets modified and build, the WFA shows for the class on the .dll: “Type “MyClass” is not defined” and at description: “Unable to load referenced library “MyLibraryDllPath”. The process cannot access the file because it is being used by another process” **Bad solutions:** This problem gets solved by …

Member Avatar
Member Avatar
+0 forum 1

The End.