Leaving out type names during compilation

2023-02-18 Thread rgv151
I don't write malicious stuffs, but me too want to hide these information

the easiest to get this string cut

2022-02-14 Thread rgv151
var str= "abcdef" begstr = "abc" thistr = str[begstr.len..^1] echo thistr Run

newbie kick-in-the-pants: nim as a cgi application

2021-08-18 Thread rgv151
have you tried my fastcgi module?

Search SSH library

2021-03-25 Thread rgv151
Need SCP, SFTP client too? check it out:

how to wrap a C object when field names are Nim keywords?

2020-12-02 Thread rgv151
for the first case, yes, why not type Foo = object `type`: int var f = Foo(`type`: 10) echo f Run

how to wrap a C object when field names are Nim keywords?

2020-12-02 Thread rgv151
I usually use `kind` instead of `type`, but backticks work for me, can you post your code here?

Ambiguous call?

2020-11-27 Thread rgv151
You should declare f with this: f = system.open(table_path) Run

embed DLL into EXE?

2020-07-18 Thread rgv151
check out my example here: [https://github.com/ba0f3/mm.nim/blob/master/tests/test1.nim](https://github.com/ba0f3/mm.nim/blob/master/tests/test1.nim) there are many ways to read a file, you can use [readFile](https://nim-lang.github.io/Nim/io.html#readFile%2Cstring) or [slurp](https://nim-lang.

embed DLL into EXE?

2020-07-18 Thread rgv151
Try use slurp to read the dll file, AFAIK Nim's string wont work well with binary data

embed DLL into EXE?

2020-07-18 Thread rgv151
edited

embed DLL into EXE?

2020-07-18 Thread rgv151
here is the wrapper: {.compile: "MemoryModule.c".} type HMEMORYMODULE* = pointer HMEMORYRSRC* = pointer HCUSTOMMODULE* = pointer {.push: cdecl, importc, discardable.} proc MemoryLoadLibrary*(loc: pointer, size: int): HMEMORYMODULE proc

embed DLL into EXE?

2020-07-18 Thread rgv151
I made a wrapper of MemoryModule <[https://github.com/fancycode/MemoryModule>_](https://github.com/fancycode/MemoryModule>_), that can help you load dll from a string