Goodday everybody...

I've build a COM which has the following function:

Public Sub func1(sFile as String)
Dim sName as String
sName = sFile
End Sub

If I call this function, let's say sFile is pass as "One", it doesn't worked. In other words, I try to assign the sFile value into sName, but when I check on the value of sName, it's empty/blank, while the value in sFile is what I passed, "One".

Hope someone out there can provide me an answer and solution.

Thanks in advanced.

P.S. this function is called from a program written in VC++.