primeros intentos

This commit is contained in:
2025-06-09 15:17:53 +02:00
parent 6872573516
commit 3cd5e6fce0
5 changed files with 105 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
{
"configurations": [
{
"name": "macos-clang-x64",
"includePath": [
"${workspaceFolder}/**",
"${workspaceFolder}"
],
"compilerPath": "/usr/bin/clang",
"cStandard": "${default}",
"cppStandard": "${default}",
"intelliSenseMode": "macos-clang-x64",
"compilerArgs": [
""
]
}
],
"version": 4
}
+13
View File
@@ -0,0 +1,13 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "lldb",
"request": "launch",
"args": [],
"cwd": "/Users/m4gn3to/App-Tarjetas-SMART70",
"program": "/Users/m4gn3to/App-Tarjetas-SMART70/build/Debug/outDebug"
}
]
}
+59
View File
@@ -0,0 +1,59 @@
{
"C_Cpp_Runner.cCompilerPath": "clang",
"C_Cpp_Runner.cppCompilerPath": "clang++",
"C_Cpp_Runner.debuggerPath": "lldb",
"C_Cpp_Runner.cStandard": "",
"C_Cpp_Runner.cppStandard": "",
"C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat",
"C_Cpp_Runner.useMsvc": false,
"C_Cpp_Runner.warnings": [
"-Wall",
"-Wextra",
"-Wpedantic",
"-Wshadow",
"-Wformat=2",
"-Wcast-align",
"-Wconversion",
"-Wsign-conversion",
"-Wnull-dereference"
],
"C_Cpp_Runner.msvcWarnings": [
"/W4",
"/permissive-",
"/w14242",
"/w14287",
"/w14296",
"/w14311",
"/w14826",
"/w44062",
"/w44242",
"/w14905",
"/w14906",
"/w14263",
"/w44265",
"/w14928"
],
"C_Cpp_Runner.enableWarnings": true,
"C_Cpp_Runner.warningsAsError": false,
"C_Cpp_Runner.compilerArgs": [],
"C_Cpp_Runner.linkerArgs": [],
"C_Cpp_Runner.includePaths": [],
"C_Cpp_Runner.includeSearch": [
"*",
"**/*"
],
"C_Cpp_Runner.excludeSearch": [
"**/build",
"**/build/**",
"**/.*",
"**/.*/**",
"**/.vscode",
"**/.vscode/**"
],
"C_Cpp_Runner.useAddressSanitizer": false,
"C_Cpp_Runner.useUndefinedSanitizer": false,
"C_Cpp_Runner.useLeakSanitizer": false,
"C_Cpp_Runner.showCompilationTime": false,
"C_Cpp_Runner.useLinkTimeOptimization": false,
"C_Cpp_Runner.msvcSecureNoWarnings": false
}
-1
View File
@@ -1,4 +1,3 @@
#include "stdafx.h"
#include "SMARTComm70.h" #include "SMARTComm70.h"
#include "SmartErrcodes.h" #include "SmartErrcodes.h"
+14
View File
@@ -0,0 +1,14 @@
// Ejemplo de conexión básica
HSMART70 printerHandle;
SMART70_PRINTER_LIST printerList;
// Obtener lista de impresoras disponibles
Smart70_GetDeviceList(&printerList);
// Conectar con la primera impresora encontrada (modo DCL)
Smart70DCL_OpenDevice(&printerHandle, printerList.item[0].desc,
SMART70_OPENDEVICE_BYDESC, DMORIENT_LANDSCAPE);
// Verificar módulos conectados
SMART70_DEVCONNLIST moduleList;
Smart70_GetConnectedModules(printerHandle, &moduleList);