Posts by João Paulo • 69 points
17 posts
-
0
votes2
answers267
viewsA: When to actually use malloc() and/or calloc()?
Introducing During the development of the C (or C+) language we will one day need to use the malloc, but when? Suppose, you create a program to receive personal data and in a part need to enter your…
-
0
votes2
answers4016
viewsA: Pays to migrate from Swing to Javafx?
Hello, well let’s see how is the Swing and Javafx taking their similarities and differences. Swing Swing was a successor to the SWT that made the GUI better and was also created new Componentes,…
-
0
votes1
answer39
viewsA: How to download a Github release file using Webclient on . NET 3.5?
I discovered the problem, as I use . NET 3.5, there is no support for TLS and since I switched to version 4.5 it worked. It may also be that Github might have used TLS connection and it didn’t work.…
-
0
votes0
answers22
viewsQ: Winapi - Receive the process name and PID in C++
I am working on Windows processes, detect process, receive image name (Program) and your PID using Winapi. #include <windows.h> #include <tlhelp32.h> #include <tchar.h> #include…
-
0
votes0
answers25
viewsQ: How to use a C# DLL in C++ using COM
In my project I am developing interoperability between C# and C++ in a single Library. In C++ my C++ functions and functions could bring to C# while C# methods could bring to C++, for example…
-
0
votes1
answer90
viewsA: Problem with function call in DLL (C)
How you are doing in C as it is in the question title and tag. Question I answered read, different from C++ works like this: /* Replace "dll.h" with the name of your header */ #include "dll.h"…
canswered João Paulo 69 -
0
votes1
answer36
viewsQ: Mega API Client: Cancellationtoken at Downloadfileasync
I started using a MEGA file cloud API where I can upload and download the files from the cloud. Nuget Package here, I’m doing fine: using CG.Web.MegaApiClient; using System; using…
-
1
votes2
answers1324
viewsA: How to use Template in C++?
In C++ we can use template in: Function Structs Classes I don’t know about variables and functions, see the examples: //Devemos usar template antes da declaração. //O mais comum em template é usar…
-
0
votes2
answers80
viewsA: Progress bar does not update with ftp download
private void startDownload() { WebClient client = new WebClient(); client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged);…
-
0
votes1
answer39
viewsQ: How to download a Github release file using Webclient on . NET 3.5?
After my question of Create Zip files and unzip using . NET 3.5 I have a problem. It’s just that before I was able to download my file in a Github release, but then it didn’t work anymore. using…
-
0
votes1
answer35
viewsA: Type a value with "." dot. Ex: 7.5
No need to leave this question useless already, not everyone knows much about programming. He is a New Contributor. import java.util.Scanner; class Main { public static void main (String[] args){…
javaanswered João Paulo 69 -
0
votes2
answers1171
viewsA: DLL import in C#
In Visual Studio, the solution manager has the item Right-click on it and click Add Reference. A references window will appear click the browse button and select your dll. After selecting it will…
-
0
votes2
answers90
viewsA: Why can normal functions not have "auto" arguments if "lambda Expressions" can in C++?
This is a matter of logic. Why, for example, the functions have the return set: int main(){ //Na main o retorno é de um inteiro, se o programa executar normalmente retorna 0. auto v1 = 56; //O auto…
-
-1
votes1
answer60
viewsQ: Create Zip files and unzip using . NET 3.5
I’m making an online installer for my Github program, I made a Form with some basic controls. using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using…
-
0
votes1
answer43
viewsA: printing twice with for()
Well, first let’s do this end-to-end. First let’s make an organization in this code, starting at the beginning... The structs Information would be the candidates and the projects would be each of…
c++answered João Paulo 69 -
0
votes1
answer25
viewsA: Create and call a c++ template function
To call a function with template does so: Example: //Esse é um método de minha API template <typename in, typename out> out casterBasicVar(in _value){ out output; std::istringstream(_value)…
-
1
votes1
answer241
viewsA: Reference error in DLL
To make this reference to the DLL, a lib is required. If when compiling your DLL, you can find some files, if you find a . a or . lib in your project it will be your Linker with your DLL. Example:…